mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: if topic did not save do not attempt to skip inbox
This commit is contained in:
parent
68026bdab3
commit
1a27d887fa
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue