Limit the number of users you can block

Description

It should only be possible to block 2,000 users.

The number should be configurable.

The error message should correspond with the error for muting too many users, which at the time of writing is, “Sorry, you have muted too many accounts.”

The text at the top of your blocked users page should be updated to say, “You can block up to 2,000 users. Blocking a user prevents them from:” (It should reference the config variable and use a delimiter.)

To test:

  1. Log in

  2. Hi, username! > My Preferences > Blocked Users

Confirm that the new text is there. No need to block 2,000 users.

Before deploy:

Make sure we have the proper number for the config (ArchiveConfig.MAX_BLOCKED_USERS) – it may need to be increased.

Activity

Show:

lydia-theda 
January 26, 2023 at 7:21 AM

Ah, so even if I had managed to make testy block 1k users before deploy it wouldn’t have worked.

Anyway, text now says “You can block up to 2,000 users. Blocking a user prevents them from:”

Sarken 
January 26, 2023 at 6:57 AM

https://test.archiveofourown.org/users/sarken/blocked/users says

You can block up to 2,000 users.

Looks good!

DeployedToBeta

Details

Assignee

Reporter

Roadmap

Misc

Priority

Affects versions

Fix versions

Components

BackEnd

Difficulty

Milestone

Sentry

Created November 17, 2022 at 1:38 AM
Updated February 8, 2023 at 9:45 PM
Resolved February 8, 2023 at 9:45 PM