mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 04:14:38 +08:00
FIX: if topic did not save do not attempt to skip inbox
This commit is contained in:
@ -262,7 +262,7 @@ class PostCreator
|
||||
end
|
||||
|
||||
def ensure_in_allowed_users
|
||||
return unless @topic.private_message?
|
||||
return unless @topic.private_message? && @topic.id
|
||||
|
||||
unless @topic.topic_allowed_users.where(user_id: @user.id).exists?
|
||||
unless @topic.topic_allowed_groups.where('group_id IN (
|
||||
|
Reference in New Issue
Block a user