Browse Source

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>
master
ThibG 3 years ago
committed by GitHub
parent
commit
1e64666662
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/suspend_account_service.rb

+ 1
- 1
app/services/suspend_account_service.rb View File

@ -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!

Loading…
Cancel
Save