Add Special:Mute as a shortcut for muting notifications
authorDayllan Maza <dmaza@wikimedia.org>
Tue, 7 May 2019 14:55:48 +0000 (10:55 -0400)
committerDayllan Maza <dmaza@wikimedia.org>
Tue, 25 Jun 2019 03:10:02 +0000 (23:10 -0400)
commited13d3fa56c2ec3a9e823161afab888937cc26c5
tree10c53c1e9594cac83831023efb5d6c9c3f60c95d
parent45d4e8d13a250885be42876cda3c4a836b183c59
Add Special:Mute as a shortcut for muting notifications

 - Special:Mute has been added as a quick way for users to block unwanted
   emails from other users originating from Special:EmailUser
 - Special:Mute can be enabled by setting $wgEnableSpecialMute = true.
   This flag default value is `false`. This flag is temporary until
   enough wikis have this feature enabled and then it will go away
 - When Special:Mute is enabled, emails sent from Special:EmailUser
   contain a link to Special:Mute to facilitate access to the page

In the future, Special:Mute will support extensions to append other types
of notifications that could be muted. These are some of the tasks tracking
the rest of the work:
- T218270
- T220163
- T218266

It is worth mentioning that blocking emails from users is already available
via Special:Preferences

Bug: T218265
Change-Id: I54b847192f42ee1f37999d36c3a187f8826f55a8
14 files changed:
RELEASE-NOTES-1.34
autoload.php
includes/DefaultSettings.php
includes/specialpage/SpecialPageFactory.php
includes/specials/SpecialEmailUser.php
includes/specials/SpecialMute.php [new file with mode: 0644]
includes/specials/helpers/LoginHelper.php
languages/i18n/en.json
languages/i18n/qqq.json
languages/messages/MessagesEn.php
resources/Resources.php
resources/src/mediawiki.special.mute.js [new file with mode: 0644]
resources/src/mediawiki.special.pageLanguage.js
tests/phpunit/includes/specials/SpecialMuteTest.php [new file with mode: 0644]