FIX: be consistent with how first posts in topics are counted. do like DirectoryItem.refresh_period :all

This commit is contained in:
Neil Lalonde
2017-11-09 18:05:53 -05:00
parent 0ccefb0365
commit 9dc9ca4ac0
7 changed files with 68 additions and 21 deletions

View File

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