You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app/models/concerns
ThibG f1f96ebf02
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>
5 years ago
..
account_associations.rb Change account suspensions to be reversible by default (#14726) 5 years ago
account_avatar.rb
account_counters.rb
account_finder_concern.rb
account_header.rb
account_interactions.rb Fix being able to import more than allowed number of follows (#15384) 5 years ago
account_merging.rb Fix account merging in maintenance script (#15264) 5 years ago
attachmentable.rb Fix remote files not using Content-Type header, streaming (#14184) 6 years ago
cacheable.rb
domain_materializable.rb Fix performance on instances list in admin UI (#15282) 5 years ago
domain_normalizable.rb
expireable.rb Add IP-based rules (#14963) 5 years ago
follow_limitable.rb Fix being able to import more than allowed number of follows (#15384) 5 years ago
ldap_authenticable.rb
omniauthable.rb Fix rubocop warning (#14288) 6 years ago
paginable.rb allow pagination by min_id and max_id (#14776) 5 years ago
pam_authenticable.rb
rate_limitable.rb
redisable.rb
relationship_cacheable.rb
remotable.rb Fix movie width and frame_rate returning nil (#14357) 6 years ago
status_threading_concern.rb
user_roles.rb