mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
FIX: if topic did not save do not attempt to skip inbox
This commit is contained in:
parent
68026bdab3
commit
1a27d887fa
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue
Block a user