From 1ae23775656fbf25dd29251843bfdcd693368dd6 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Tue, 22 Sep 2020 18:36:41 -0500 Subject: Make community digest boost threshold configurable with AMBASSADOR_THRESHOLD --- app/workers/scheduler/ambassador_scheduler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/scheduler/ambassador_scheduler.rb b/app/workers/scheduler/ambassador_scheduler.rb index f942a9893..ebb2c1c45 100644 --- a/app/workers/scheduler/ambassador_scheduler.rb +++ b/app/workers/scheduler/ambassador_scheduler.rb @@ -31,7 +31,7 @@ class Scheduler::AmbassadorScheduler end def ambassador_boost_candidates - ambassador_boostable.joins(:status_stat).where('favourites_count + reblogs_count > 4') + ambassador_boostable.joins(:status_stat).where('favourites_count + reblogs_count >= ?', ENV.fetch('AMBASSADOR_THRESHOLD', 3).to_i) end def ambassador_boostable -- cgit