Skip to content
Snippets Groups Projects
Unverified Commit 1e646666 authored by ThibG's avatar ThibG Committed by GitHub
Browse files

Fix crash in SuspendAccountWorker (#15106)


* Fix crash in SuspendAccountWorker

`follows` is an array thanks to `to_a`

* Fix code style issue

Co-authored-by: default avatarEugen Rochko <eugen@zeonfederated.com>
parent 31346919
No related branches found
No related tags found
No related merge requests found
......@@ -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!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment