server: add return type to extractApMentions

This commit is contained in:
Norm 2022-12-13 16:31:15 -05:00
parent bd27b7ca3a
commit a9d3cae511
Signed by untrusted user: norm
GPG key ID: 7123E30E441E80DE

View file

@ -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);