From c9adcfa6fa91da31e5a2eb768549aa3ffccc48aa Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Sun, 2 Jul 2023 12:24:14 +0900 Subject: [PATCH] cleanup(`ApMentionService.ts`) --- .../backend/src/core/activitypub/models/ApMentionService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/activitypub/models/ApMentionService.ts b/packages/backend/src/core/activitypub/models/ApMentionService.ts index c581840ca9..9beefc8fcb 100644 --- a/packages/backend/src/core/activitypub/models/ApMentionService.ts +++ b/packages/backend/src/core/activitypub/models/ApMentionService.ts @@ -29,10 +29,10 @@ export class ApMentionService { const mentionedUsers = (await Promise.all( hrefs.map(x => limit(() => this.apPersonService.resolvePerson(x, resolver).catch(() => null))), )).filter((x): x is User => x != null); - + return mentionedUsers; } - + @bindThis public extractApMentionObjects(tags: IObject | IObject[] | null | undefined): IApMention[] { if (tags == null) return [];