FIX: don't count whispers in user stats post_count

This commit is contained in:
Neil Lalonde
2017-11-02 16:08:42 -04:00
parent 24af9b7d97
commit f29290ad11
2 changed files with 24 additions and 15 deletions

View File

@@ -473,7 +473,7 @@ class PostCreator
end
unless @post.topic.private_message?
@user.user_stat.post_count += 1
@user.user_stat.post_count += 1 if @post.post_type == Post.types[:regular]
@user.user_stat.topic_count += 1 if @post.is_first_post?
end