Problem to solve
Users may sometimes harass other users (intentionally or unintentionally) with excess use of the "Thanks" options.
Proposed solution
To tackle this, it would be nice to have a way to partially block a user from sending thanks only. Hopefully this will help us retain users while helping them learn wiki policies into becoming constructive members on the projects.
What needs doing
Add the thanks action to the BlockActionInfoService. This will need to be done using the GetAllBlockActions hook.
Some of the acceptance criteria below will be handled by other tasks.
There is an open question of how to assign IDs to blockable actions added by extensions (T280808). This can be resolved before or after this task.
Acceptance criteria (for testing)
- On Special:Block, under 'Actions to block' there is a checkbox for Sending thanks (see T280719 for the final design)
- When a block is saved with the 'Sending thanks' checkbox selected, the target user should not be able to thank another user via the UI, API or any other tool.
- When a block is saved with the 'Sending thanks' checkbox selected, the log items should indicate page creation is part of the block (done in T199918)
e.g. 23:20, 26 November 2018 AdminUsername (talk | contribs | block) blocked BadUser (talk | contribs) from sending thanks with an expiration time of N (autoblock disabled) (unblock | change block)
- Special:BlockList should display that a user is blocked from creating pages as a bullet in the 'Block parameters' column (done in T279559)