Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 8:45 PM
Size
1 KB
Referenced Files
None
Subscribers
None
Index: includes/Article.php
===================================================================
--- includes/Article.php (revision 17265)
+++ includes/Article.php (working copy)
@@ -2140,8 +2140,10 @@
# If this is another user's talk page, update newtalk
# Don't do this if $changed = false otherwise some idiot can null-edit a
- # load of user talk pages and piss people off
- if( $this->mTitle->getNamespace() == NS_USER_TALK && $shortTitle != $wgUser->getTitleKey() && $changed ) {
+ # load of user talk pages and piss people off, nor if it's a minor edit
+ # by a properly-flagged bot.
+ if( $this->mTitle->getNamespace() == NS_USER_TALK && $shortTitle != $wgUser->getTitleKey() && $changed
+ && !($minoredit && $wgUser->isAllowed('nominornewtalk') ) ) {
if (wfRunHooks('ArticleEditUpdateNewTalk', array(&$this)) ) {
$other = User::newFromName( $shortTitle );
if( is_null( $other ) && User::isIP( $shortTitle ) ) {
Index: includes/DefaultSettings.php
===================================================================
--- includes/DefaultSettings.php (revision 17265)
+++ includes/DefaultSettings.php (working copy)
@@ -919,6 +919,7 @@
// from various log pages by default
$wgGroupPermissions['bot' ]['bot'] = true;
$wgGroupPermissions['bot' ]['autoconfirmed'] = true;
+$wgGroupPermissions['bot' ]['nominornewtalk'] = true;
// Most extra permission abilities go to this group
$wgGroupPermissions['sysop']['block'] = true;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1803
Default Alt Text
bug3224 (1 KB)

Event Timeline