diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-15 09:17:16 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-04-15 09:17:16 +0200 |
commit | 69d48ee30c9d47cddf0c3c047dc99a99dcb6e894 (patch) | |
tree | 30c705ac993534d2e72b070200e6961465d0db4d | |
parent | 1159c4a600ce4f2b86973fe88ae8827a06f523c7 (diff) | |
download | PeerTube-69d48ee30c9d47cddf0c3c047dc99a99dcb6e894.tar.gz PeerTube-69d48ee30c9d47cddf0c3c047dc99a99dcb6e894.tar.zst PeerTube-69d48ee30c9d47cddf0c3c047dc99a99dcb6e894.zip |
Don't clean mastodon rates
Workaround of https://github.com/mastodon/mastodon/issues/13571
-rw-r--r-- | server/lib/job-queue/handlers/activitypub-cleaner.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/job-queue/handlers/activitypub-cleaner.ts b/server/lib/job-queue/handlers/activitypub-cleaner.ts index 123aeac03..3d7dc6fb9 100644 --- a/server/lib/job-queue/handlers/activitypub-cleaner.ts +++ b/server/lib/job-queue/handlers/activitypub-cleaner.ts | |||
@@ -29,6 +29,9 @@ async function processActivityPubCleaner (_job: Job) { | |||
29 | const { bodyValidator, deleter, updater } = rateOptionsFactory() | 29 | const { bodyValidator, deleter, updater } = rateOptionsFactory() |
30 | 30 | ||
31 | await map(rateUrls, async rateUrl => { | 31 | await map(rateUrls, async rateUrl => { |
32 | // TODO: remove when https://github.com/mastodon/mastodon/issues/13571 is fixed | ||
33 | if (rateUrl.includes('#')) return | ||
34 | |||
32 | const result = await updateObjectIfNeeded({ url: rateUrl, bodyValidator, updater, deleter }) | 35 | const result = await updateObjectIfNeeded({ url: rateUrl, bodyValidator, updater, deleter }) |
33 | 36 | ||
34 | if (result?.status === 'deleted') { | 37 | if (result?.status === 'deleted') { |