Skip to content

Commit

Permalink
speedy: suppress notification when a user talk page is tagged
Browse files Browse the repository at this point in the history
Only when the owner of the talk page created their own talk page.
Otherwise, since the notification edit usually happens in the middle of the tagging, the edits conflict and the tag is lost.
(I hope that makes some sort of sense...)
  • Loading branch information
atlight committed Dec 2, 2011
1 parent 1e8dc8b commit 4984599
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/twinklespeedy.js
Expand Up @@ -976,6 +976,13 @@ Twinkle.speedy.callbacks = {
if (params.usertalk) {
var callback = function(pageobj) {
var initialContrib = pageobj.getCreator();

// don't notify users when their user talk page is nominated
if (initialContrib === mw.config.get('wgTitle') && mw.config.get('wgNamespaceNumber') === 3) {
Status.warn("Notifying initial contributor: this user created their own user talk page; skipping notification");
return;
}

var usertalkpage = new Wikipedia.page('User talk:' + initialContrib, "Notifying initial contributor (" + initialContrib + ")");
var notifytext;

Expand Down

0 comments on commit 4984599

Please sign in to comment.