From a8ad47f830ffd487ca6cf9f4e4f4e92d2c7c858d Mon Sep 17 00:00:00 2001 From: ewin Date: Thu, 4 Sep 2025 23:08:53 -0400 Subject: [PATCH] whoops i didnt want to commit that yet lol --- lib/api/mediawiki.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/api/mediawiki.js b/lib/api/mediawiki.js index 2af925b..2c3d017 100644 --- a/lib/api/mediawiki.js +++ b/lib/api/mediawiki.js @@ -186,19 +186,6 @@ export class MediaWikiClient { return body; } - async purgePages (titles) { - if (!titles.length) return; - - // mediawiki has a 50 title per request limit, so we grab the first 50 - // and recurse to handle the rest - let currentTitles = titles.splice(0, 50); - const body = await this.fetchApiPost({ - action: 'purge', - titles: currentTitles.join('|'), - }); - return this.purgePages(titles); - } - /** * * @param {string} from The page's current name