don't notify on moderator actions, they just cause noise,

also filter out pms properly while at it
This commit is contained in:
Sam
2013-07-08 12:44:55 +10:00
parent 91238af6f1
commit f6a8f6cfe5
2 changed files with 22 additions and 10 deletions

View File

@ -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