about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/suspend_account_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb
index d7f29963c..7c70a6021 100644
--- a/app/services/suspend_account_service.rb
+++ b/app/services/suspend_account_service.rb
@@ -38,7 +38,7 @@ class SuspendAccountService < BaseService
       [Oj.dump(serialize_payload(follow, ActivityPub::RejectFollowSerializer)), follow.target_account_id, @account.inbox_url]
     end
 
-    follows.in_batches.destroy_all
+    follows.each(&:destroy)
   end
 
   def distribute_update_actor!