A platform for community discussion. Free, open, simple.
FIX: Apply `min_score_default_visibility` to reviewable topics list
Robin Ward86349abfead2
diff --git a/app/controllers/reviewables_controller.rb b/app/controllers/reviewables_controller.rbindex 2a18b64fd47..7bfc4bc0e88 100644--- a/app/controllers/reviewables_controller.rb+++ b/app/controllers/reviewables_controller.rb@@ -61,7 +61,10 @@ class ReviewablesController < ApplicationController# topics isn't indexed on `reviewable_score` and doesn't know what the current user can see,# so let's query from the inside out.- Reviewable.viewable_by(current_user).pending.each do |r|+ pending = Reviewable.viewable_by(current_user).pending+ pending = pending.where("score >= ?", SiteSetting.min_score_default_visibility)++ pending.each do |r|topic_ids << r.topic_idmeta = stats[r.topic_id] ||= { count: 0, unique_users: 0 }