diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-06-29 10:32:35 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:41:03 -0500 |
commit | acff991a0c31e6cfdac3120aba2bdf917bd7cf16 (patch) | |
tree | 72ab79591d41195ea12f047b8ead4c8e5f71b3a4 /app | |
parent | c69b3d9a61f9cf8b9c1a0fb6ee3fc2c7f075ab89 (diff) |
[Spam Prevention] Limit the community digest's boost candidates the last 18 months of history
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/scheduler/ambassador_scheduler.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/workers/scheduler/ambassador_scheduler.rb b/app/workers/scheduler/ambassador_scheduler.rb index bc1cc6cb6..b7361821f 100644 --- a/app/workers/scheduler/ambassador_scheduler.rb +++ b/app/workers/scheduler/ambassador_scheduler.rb @@ -46,6 +46,10 @@ class Scheduler::AmbassadorScheduler end def locally_boostable - Status.local.public_visibility.without_replies.without_reblogs + Status.local + .public_visibility + .without_replies + .without_reblogs + .where('statuses.created_at > ?', 18.weeks.ago) end end |