Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 1e646666 rédigé par ThibG's avatar ThibG Validation de GitHub
Parcourir les fichiers

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
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter