Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2226
bug3224
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 8:45 PM
2014-11-21 20:45:35 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
bug3224
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1803
Default Alt Text
bug3224 (1 KB)
Attached To
Mode
T5224: Bots/minor edits to talk pages should not create "new messages" alert
Attached
Detach File
Event Timeline
Log In to Comment