mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
don't notify on moderator actions, they just cause noise,
also filter out pms properly while at it
This commit is contained in:
@ -122,7 +122,7 @@ class PostCreator
|
||||
end
|
||||
|
||||
def after_post_create
|
||||
if @post.post_number > 1
|
||||
if !@topic.private_message? && @post.post_number > 1 && @post.post_type != Post.types[:moderator_action]
|
||||
TopicTrackingState.publish_unread(@post)
|
||||
end
|
||||
end
|
||||
@ -132,7 +132,7 @@ class PostCreator
|
||||
# Don't publish invisible topics
|
||||
return unless @topic.visible?
|
||||
|
||||
return if @topic.private_message?
|
||||
return if @topic.private_message? || @post.post_type == Post.types[:moderator_action]
|
||||
|
||||
@topic.posters = @topic.posters_summary
|
||||
@topic.posts_count = 1
|
||||
|
Reference in New Issue
Block a user