Don't clean mastodon rates

Workaround of https://github.com/mastodon/mastodon/issues/13571
pull/4903/head
Chocobozzz 2022-04-15 09:17:16 +02:00
parent 1159c4a600
commit 69d48ee30c
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ async function processActivityPubCleaner (_job: Job) {
const { bodyValidator, deleter, updater } = rateOptionsFactory() const { bodyValidator, deleter, updater } = rateOptionsFactory()
await map(rateUrls, async rateUrl => { await map(rateUrls, async rateUrl => {
// TODO: remove when https://github.com/mastodon/mastodon/issues/13571 is fixed
if (rateUrl.includes('#')) return
const result = await updateObjectIfNeeded({ url: rateUrl, bodyValidator, updater, deleter }) const result = await updateObjectIfNeeded({ url: rateUrl, bodyValidator, updater, deleter })
if (result?.status === 'deleted') { if (result?.status === 'deleted') {