Repository navigation
Moderator tools: slow mode for one user - #362
Merged
Merged
Conversation
Staff can now limit one user to a reply or new topic every so often, from the user's admin page. Core's slow mode is per topic, and its post rate limits apply to the whole site or a trust level, so neither can do this. - Interval: 1 minute to a week. Duration: a day, a week, a month, until a date, or until lifted. A reason is required. - The user gets a system message when it's set and when it's lifted. The staff action log records both. - Their composer shows how often they can post and how long until the next post. - A NewPostManager handler turns away a post that comes too soon, with how long to wait. That covers the full site, Dumbcourse and the API. - A pending queued post holds the user back until it's reviewed, so the review queue can't be used to post several at once. - Private messages and edits aren't limited. Staff can't be put in slow mode. - Settings: mod_user_slow_mode_enabled, plus mod_user_slow_mode_moderators to let moderators use it as well as admins.
Core's locale lint bans 'private message' in favour of 'personal message'. The setting description also said the user gets the reason when slow mode is lifted; only the message that sets it carries one.
can_set_user_slow_mode? sat below the Guardian extension's private section, so every call to it raised.
Core's redesigned composer pads each row rather than the reply area, so the note sat flush against the composer's edge there. Also scroll the admin-page screenshot to the slow mode row.
The browser never reads them; the serializers say what it needs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Affected module(s)
Test plan
Checklist
pnpm lintis cleanbundle exec rubocopis cleanconfig/locales/server.en.ymlorclient.en.yml