mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-07 18:32:28 +01:00
refactor(ApMentionService.ts
)
This commit is contained in:
parent
c9adcfa6fa
commit
9889ad6eb9
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ export class ApMentionService {
|
|||
}
|
||||
|
||||
@bindThis
|
||||
public async extractApMentions(tags: IObject | IObject[] | null | undefined, resolver: Resolver) {
|
||||
const hrefs = unique(this.extractApMentionObjects(tags).map(x => x.href as string));
|
||||
public async extractApMentions(tags: IObject | IObject[] | null | undefined, resolver: Resolver): Promise<User[]> {
|
||||
const hrefs = unique(this.extractApMentionObjects(tags).map(x => x.href));
|
||||
|
||||
const limit = promiseLimit<User | null>(2);
|
||||
const mentionedUsers = (await Promise.all(
|
||||
|
|
Loading…
Reference in a new issue