mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't count whispers in user stats post_count
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user