From c792e4199cc4d4bac59b42ef25ea5485861e3d90 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 22 Jan 2023 21:42:49 +0100 Subject: [PATCH] server: add missing return in extractQuoteUrl --- packages/backend/src/remote/activitypub/models/tag.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }