about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-22 18:36:41 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-22 18:36:41 -0500
commit1ae23775656fbf25dd29251843bfdcd693368dd6 (patch)
tree1189382b1bf23359da3011cbd8fd8b7f3d95be7a
parentff2619973550769b455da25bf8905ea39368dd06 (diff)
Make community digest boost threshold configurable with AMBASSADOR_THRESHOLD
-rw-r--r--app/workers/scheduler/ambassador_scheduler.rb2
1 files changed, 1 insertions, 1 deletions
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