cleanup(ApMentionService.ts)

This commit is contained in:
okayurisotto 2023-07-02 12:24:14 +09:00
parent 16ffe727cc
commit c9adcfa6fa

View File

@ -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 [];