Content deleted Content added
remove taskManagerXXX as now that's in morebits |
notify the last GAN nominator too - using toolforge endpoint |
||
Line 115:
tm.add(gar.tasks.editTalkPage, [ gar.tasks.createNomPage ]);
tm.add(gar.tasks.getCreator, []);
tm.add(gar.tasks.getLastGanNominator, []);
tm.add(gar.tasks.getOtherEditors, []);
tm.add(gar.tasks.notify, [ gar.tasks.getCreator, gar.tasks.getLastGanNominator, gar.tasks.getOtherEditors ]);
tm.execute().then(function() {
Line 209 ⟶ 210:
}, def.reject);
return def;
},
getLastGanNominator: function () {
return $.get({
url: 'https://sdzerobot.toolforge.org/gans/credit/' + mw.util.wikiUrlencode(gar.title) + '?raw=1',
timeout: 4000
}).then(function (nom) {
gar.usersToNotify.push(nom);
});
},
|