Permalink
Browse files

speedy: suppress notification when a user talk page is tagged

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 4984599c6715b4e7473844c1becac698e368a73a
Showing with 7 additions and 0 deletions.
  1. +7 −0 modules/twinklespeedy.js
@@ -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;

0 comments on commit 4984599

Please sign in to comment.