-
- Téléchargements
Fix being able to import more than allowed number of follows (#15384)
* Fix being able to import more than allowed number of follows
Without this commit, if someone tries importing a second list of accounts to
follow before the first one has been processed, this will queue imports for
the two whole lists, even if they exceed the account's allowed number of
outgoing follows.
This commit changes it so the individual queued imports aren't exempt from
the follow limit check (they remain exempt from the rate-limiting check
though).
* Catch validation errors to not re-queue failed follows
Co-authored-by:
Claire <claire.github-309c@sitedethib.com>
parent
4580129c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/models/concerns/account_interactions.rb 4 ajouts, 4 suppressionsapp/models/concerns/account_interactions.rb
- app/models/concerns/follow_limitable.rb 17 ajouts, 0 suppressionapp/models/concerns/follow_limitable.rb
- app/models/follow.rb 1 ajout, 1 suppressionapp/models/follow.rb
- app/models/follow_request.rb 1 ajout, 1 suppressionapp/models/follow_request.rb
- app/services/follow_service.rb 4 ajouts, 3 suppressionsapp/services/follow_service.rb
- app/workers/authorize_follow_worker.rb 1 ajout, 1 suppressionapp/workers/authorize_follow_worker.rb
- app/workers/import/relationship_worker.rb 5 ajouts, 1 suppressionapp/workers/import/relationship_worker.rb
- app/workers/refollow_worker.rb 1 ajout, 1 suppressionapp/workers/refollow_worker.rb
- app/workers/unfollow_follow_worker.rb 1 ajout, 1 suppressionapp/workers/unfollow_follow_worker.rb
- lib/mastodon/accounts_cli.rb 1 ajout, 1 suppressionlib/mastodon/accounts_cli.rb
- spec/workers/refollow_worker_spec.rb 2 ajouts, 2 suppressionsspec/workers/refollow_worker_spec.rb
app/models/concerns/follow_limitable.rb
0 → 100644
Veuillez vous inscrire ou vous se connecter pour commenter