Merge commit '670e4655d13975e0597bd1c74ebeeeeffc4edc37' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2024-08-07 19:22:25 +02:00
commit 06e034db15
123 files changed
+253 -135

No files matched your search

@@ -0,0 +1,9 @@
# frozen_string_literal: true
class FilteredNotificationCleanupWorker
include Sidekiq::Worker
def perform(account_id, from_account_id)
Notification.where(account_id: account_id, from_account_id: from_account_id, filtered: true).reorder(nil).in_batches(order: :desc).delete_all
end
end