about summary refs log tree commit diff
path: root/app/workers/scheduler
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/scheduler')
-rw-r--r--app/workers/scheduler/feed_cleanup_scheduler.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/workers/scheduler/feed_cleanup_scheduler.rb b/app/workers/scheduler/feed_cleanup_scheduler.rb
index aa0cc8b8d..78adc97e2 100644
--- a/app/workers/scheduler/feed_cleanup_scheduler.rb
+++ b/app/workers/scheduler/feed_cleanup_scheduler.rb
@@ -9,6 +9,7 @@ class Scheduler::FeedCleanupScheduler
   def perform
     clean_home_feeds!
     clean_list_feeds!
+    clean_direct_feeds!
   end
 
   private
@@ -21,6 +22,10 @@ class Scheduler::FeedCleanupScheduler
     feed_manager.clean_feeds!(:list, inactive_list_ids)
   end
 
+  def clean_direct_feeds!
+    feed_manager.clean_feeds!(:direct, inactive_account_ids)
+  end
+
   def inactive_account_ids
     @inactive_account_ids ||= User.confirmed.inactive.pluck(:account_id)
   end