FIX: approve post count did not take new topics into account

This means if a user created a new topic, and it was approved, it would not
count towards their approval count. Replies worked correctly.
This commit is contained in:
Robin Ward
2020-09-09 12:47:37 -04:00
parent b409954398
commit add3d46bc0
2 changed files with 27 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ class NewPostManager
return :post_count if (
user.trust_level <= TrustLevel.levels[:basic] &&
user.post_count < SiteSetting.approve_post_count
(user.post_count + user.topic_count) < SiteSetting.approve_post_count
)
return :trust_level if user.trust_level < SiteSetting.approve_unless_trust_level.to_i