diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-09-24 15:12:10 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-09-24 15:12:10 -0500 |
commit | 9acfa07ac9e7c191751598c646131a2302c8df46 (patch) | |
tree | 8aa2f4ff82a93cc8e52e9cf9575611390fbd783e /app/workers/scheduler | |
parent | 0419cd747a4bce9e520c4df0b265e4f1562df8b0 (diff) |
Make consideration window of community digest configurable and limit to two weeks by default
Diffstat (limited to 'app/workers/scheduler')
-rw-r--r-- | app/workers/scheduler/ambassador_scheduler.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/workers/scheduler/ambassador_scheduler.rb b/app/workers/scheduler/ambassador_scheduler.rb index ebb2c1c45..f00d0912a 100644 --- a/app/workers/scheduler/ambassador_scheduler.rb +++ b/app/workers/scheduler/ambassador_scheduler.rb @@ -48,9 +48,9 @@ class Scheduler::AmbassadorScheduler def locally_boostable Status.local - .public_visibility - .without_replies - .without_reblogs - .where('statuses.created_at > ?', 18.weeks.ago) + .public_visibility + .without_replies + .without_reblogs + .where('statuses.created_at > ?', ENV.fetch('AMBASSADOR_RANGE', 14).days.ago) end end |