mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: be consistent with how first posts in topics are counted. do like DirectoryItem.refresh_period :all
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user