diff --git a/packages/backend/src/remote/activitypub/models/tag.ts b/packages/backend/src/remote/activitypub/models/tag.ts index 182a23765..faa3984f8 100644 --- a/packages/backend/src/remote/activitypub/models/tag.ts +++ b/packages/backend/src/remote/activitypub/models/tag.ts @@ -45,5 +45,5 @@ export function extractQuoteUrl(tags: IObject | IObject[] | null | undefined): s // Deduplicate by href. // If there is more than one quote, we just pick the first/a random one. - quotes.filter((x, i, arr) => arr.findIndex(y => x.href === y.href) === i)[0].href; + return quotes.filter((x, i, arr) => arr.findIndex(y => x.href === y.href) === i)[0].href; }