diff --git a/src/remote/activitypub/audience.ts b/src/remote/activitypub/audience.ts index b34680dac..ec445ddf0 100644 --- a/src/remote/activitypub/audience.ts +++ b/src/remote/activitypub/audience.ts @@ -19,6 +19,8 @@ export async function parseAudience(actor: IRemoteUser, to?: ApObject, cc?: ApOb const others = unique(concat([toGroups.other, ccGroups.other])); + if (resolver == null) resolver = new Resolver(); + const limit = promiseLimit(2); const mentionedUsers = (await Promise.all( others.map(id => limit(() => resolvePerson(id, resolver).catch(() => null)))