mirror of https://github.com/Chocobozzz/PeerTube
Don't clean mastodon rates
Workaround of https://github.com/mastodon/mastodon/issues/13571pull/4903/head
parent
1159c4a600
commit
69d48ee30c
|
@ -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') {
|
||||||
|
|
Loading…
Reference in New Issue