about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-11-09 10:53:53 +0100
committerThibaut Girka <thib@sitedethib.com>2020-11-09 10:53:53 +0100
commitecd83f495c18486bc7ea901423f6fccfd910b277 (patch)
treeb718c8b54a0bd63eab69abaef2267c8f0aa9a9b9 /app/services
parent0437d70628bcd852c303432562c74202554fe9cb (diff)
parent2b63c62c57b431074c7b91e195cabf94a0db7a10 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/services')
-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!