]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't clean mastodon rates
authorChocobozzz <me@florianbigard.com>
Fri, 15 Apr 2022 07:17:16 +0000 (09:17 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 15 Apr 2022 07:17:16 +0000 (09:17 +0200)
Workaround of https://github.com/mastodon/mastodon/issues/13571

server/lib/job-queue/handlers/activitypub-cleaner.ts

index 123aeac032825ec5e67fe42bfcd670fefecd256f..3d7dc6fb97582e7096aec469a977c36e03849dd1 100644 (file)
@@ -29,6 +29,9 @@ async function processActivityPubCleaner (_job: Job) {
     const { bodyValidator, deleter, updater } = rateOptionsFactory()
 
     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 })
 
       if (result?.status === 'deleted') {