From fe80de9bbe51adef5febffad1b1069152fe46073 Mon Sep 17 00:00:00 2001 From: xiplus Date: Wed, 27 Oct 2021 13:18:21 +0800 Subject: [PATCH] Rename lookupCreator to lookupCreation --- modules/twinklecopyvio.js | 4 ++-- modules/twinklespeedy.js | 2 +- modules/twinklexfd.js | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/twinklecopyvio.js b/modules/twinklecopyvio.js index 8357a4d..f7695ce 100644 --- a/modules/twinklecopyvio.js +++ b/modules/twinklecopyvio.js @@ -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(); diff --git a/modules/twinklespeedy.js b/modules/twinklespeedy.js index 9752648..dc3ea4e 100644 --- a/modules/twinklespeedy.js +++ b/modules/twinklespeedy.js @@ -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); diff --git a/modules/twinklexfd.js b/modules/twinklexfd.js index 2962e88..ee31572 100644 --- a/modules/twinklexfd.js +++ b/modules/twinklexfd.js @@ -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 @@ -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; @@ -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); } } };