Skip to content

Commit

Permalink
Rename lookupCreator to lookupCreation
Browse files Browse the repository at this point in the history
  • Loading branch information
Xi-Plus committed Oct 27, 2021
1 parent 4f696cb commit fe80de9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/twinklecopyvio.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ Twinkle.copyvio.callbacks = {
// Contributor specific edits
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName'));
wikipedia_page.setCallbackParameters(pageobj.getCallbackParameters());
wikipedia_page.lookupCreator(Twinkle.copyvio.callbacks.main);
wikipedia_page.lookupCreation(Twinkle.copyvio.callbacks.main);
} else {
Morebits.status.error(wgULS('错误', '錯誤'), wgULS('页面已经标记侵权,请人工确认是否已经提报。', '頁面已經標記侵權,請人工確認是否已經提報。'));
}
},
main: function(pageobj) {
// this is coming in from lookupCreator...!
// this is coming in from lookupCreation...!
var params = pageobj.getCallbackParameters();
var initialContrib = pageobj.getCreator();

Expand Down
2 changes: 1 addition & 1 deletion modules/twinklespeedy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ Twinkle.speedy.callbacks = {
}
};
var thispage = new Morebits.wiki.page(Morebits.pageNameNorm);
thispage.lookupCreator(callback);
thispage.lookupCreation(callback);
// or, if not notifying, add this nomination to the user's userspace log without the initial contributor's name
} else if (params.lognomination) {
Twinkle.speedy.callbacks.user.addToLog(params, null);
Expand Down
8 changes: 4 additions & 4 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ Twinkle.xfd.callback.change_afd_category = function twinklexfdCallbackChangeAfdC
Twinkle.xfd.callbacks = {
afd: {
main: function(pageobj) {
// this is coming in from lookupCreator...!
// this is coming in from lookupCreation...!
var params = pageobj.getCallbackParameters();

// Adding discussion
Expand Down Expand Up @@ -482,13 +482,13 @@ Twinkle.xfd.callbacks = {
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName'));
wikipedia_page.setCallbackParameters(pageobj.getCallbackParameters());
wikipedia_page.setLookupNonRedirectCreator(true); // Look for author of first non-redirect revision
wikipedia_page.lookupCreator(Twinkle.xfd.callbacks.afd.main);
wikipedia_page.lookupCreation(Twinkle.xfd.callbacks.afd.main);
}
},

ffd: {
main: function(pageobj) {
// this is coming in from lookupCreator...!
// this is coming in from lookupCreation...!
var params = pageobj.getCallbackParameters();
var initialContrib = pageobj.getCreator();
params.uploader = initialContrib;
Expand Down Expand Up @@ -601,7 +601,7 @@ Twinkle.xfd.callbacks = {
var wikipedia_page = new Morebits.wiki.page(mw.config.get('wgPageName'));
wikipedia_page.setCallbackParameters(pageobj.getCallbackParameters());
wikipedia_page.setLookupNonRedirectCreator(true); // Look for author of first non-redirect revision
wikipedia_page.lookupCreator(Twinkle.xfd.callbacks.ffd.main);
wikipedia_page.lookupCreation(Twinkle.xfd.callbacks.ffd.main);
}
}
};
Expand Down

0 comments on commit fe80de9

Please sign in to comment.