diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-22 18:36:41 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-22 18:36:41 -0500 |
commit | 1ae23775656fbf25dd29251843bfdcd693368dd6 (patch) | |
tree | 1189382b1bf23359da3011cbd8fd8b7f3d95be7a /app | |
parent | ff2619973550769b455da25bf8905ea39368dd06 (diff) |
Make community digest boost threshold configurable with AMBASSADOR_THRESHOLD
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/scheduler/ambassador_scheduler.rb | 2 |
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 |