about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/workers/scheduler/ambassador_scheduler.rb6
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