mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
cleanup(ApMentionService.ts
)
This commit is contained in:
parent
16ffe727cc
commit
c9adcfa6fa
@ -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 [];
|
||||
|
Loading…
Reference in New Issue
Block a user