Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix being able to import more than allowed number of follows #15384

Merged

Conversation

ClearlyClaire
Copy link
Contributor

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).

Also catch validation errors to not re-queue failed follow attempts.

@ClearlyClaire ClearlyClaire force-pushed the fixes/multiple-imports-bypass-limit branch 3 times, most recently from cc95e92 to b70bad0 Compare December 20, 2020 18:52
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).
@ClearlyClaire ClearlyClaire force-pushed the fixes/multiple-imports-bypass-limit branch from b70bad0 to b7fd644 Compare December 20, 2020 19:00
@ClearlyClaire ClearlyClaire marked this pull request as ready for review December 20, 2020 22:33
@Gargron Gargron merged commit f1f96eb into mastodon:master Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants