whoops i didnt want to commit that yet lol

This commit is contained in:
ewin 2025-09-04 23:08:53 -04:00
parent 6804184cf1
commit a8ad47f830
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc

View file

@ -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