Migrate score settings to use sensitivities

We hide scores so these settings no longer made sense.
This commit is contained in:
Robin Ward
2019-05-24 14:13:03 -04:00
parent fad5d9c49b
commit 89b84651c3
14 changed files with 182 additions and 39 deletions

View File

@ -1373,7 +1373,7 @@ class Topic < ActiveRecord::Base
.pluck("COUNT(DISTINCT reviewable_scores.user_id), COALESCE(SUM(reviewable_scores.score), 0.0)")
.first
scores[0] >= SiteSetting.num_flaggers_to_close_topic && scores[1] >= SiteSetting.score_to_auto_close_topic
scores[0] >= SiteSetting.num_flaggers_to_close_topic && scores[1] >= Reviewable.score_to_auto_close_topic
end
def update_category_topic_count_by(num)