diff options
author | ThibG <thib@sitedethib.com> | 2020-11-08 18:29:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 18:29:48 +0100 |
commit | 1e64666662c1ecd8f820941c5901857469c87358 (patch) | |
tree | 7a27e2344a907cee397f0891f03595e50a2766a9 | |
parent | 3134691948aeacb16b7386ed77bbea4581beec40 (diff) |
Fix crash in SuspendAccountWorker (#15106)
* Fix crash in SuspendAccountWorker `follows` is an array thanks to `to_a` * Fix code style issue Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
-rw-r--r-- | app/services/suspend_account_service.rb | 2 |
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! |