cleanup(`ApMentionService.ts`)
This commit is contained in:
parent
16ffe727cc
commit
c9adcfa6fa
|
@ -29,10 +29,10 @@ export class ApMentionService {
|
||||||
const mentionedUsers = (await Promise.all(
|
const mentionedUsers = (await Promise.all(
|
||||||
hrefs.map(x => limit(() => this.apPersonService.resolvePerson(x, resolver).catch(() => null))),
|
hrefs.map(x => limit(() => this.apPersonService.resolvePerson(x, resolver).catch(() => null))),
|
||||||
)).filter((x): x is User => x != null);
|
)).filter((x): x is User => x != null);
|
||||||
|
|
||||||
return mentionedUsers;
|
return mentionedUsers;
|
||||||
}
|
}
|
||||||
|
|
||||||
@bindThis
|
@bindThis
|
||||||
public extractApMentionObjects(tags: IObject | IObject[] | null | undefined): IApMention[] {
|
public extractApMentionObjects(tags: IObject | IObject[] | null | undefined): IApMention[] {
|
||||||
if (tags == null) return [];
|
if (tags == null) return [];
|
||||||
|
|
Loading…
Reference in New Issue