forked from FoundKeyGang/FoundKey
server: add return type to extractApMentions
This commit is contained in:
parent
bd27b7ca3a
commit
a9d3cae511
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { Resolver } from '@/remote/activitypub/resolver.js';
|
|||
import { IObject, isMention, IApMention } from '../type.js';
|
||||
import { resolvePerson } from './person.js';
|
||||
|
||||
export async function extractApMentions(tags: IObject | IObject[] | null | undefined, resolver: Resolver) {
|
||||
export async function extractApMentions(tags: IObject | IObject[] | null | undefined, resolver: Resolver): Promise<CacheableUser[]> {
|
||||
const hrefs = unique(extractApMentionObjects(tags).map(x => x.href as string));
|
||||
|
||||
const limit = promiseLimit<CacheableUser | null>(2);
|
||||
|
|
Loading…
Reference in a new issue