mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-23 14:46:07 +09:00
[backend] Create a new resolver in parseAudience if none is passed to the function
This commit addresses disclosed primitive 23
This commit is contained in:
parent
dc3c2d1ad4
commit
ca331d2406
@ -1,6 +1,6 @@
|
||||
import type { ApObject } from "./type.js";
|
||||
import { getApIds } from "./type.js";
|
||||
import type Resolver from "./resolver.js";
|
||||
import Resolver from "./resolver.js";
|
||||
import { resolvePerson } from "./models/person.js";
|
||||
import { unique, concat } from "@/prelude/array.js";
|
||||
import promiseLimit from "promise-limit";
|
||||
@ -31,6 +31,7 @@ export async function parseAudience(
|
||||
|
||||
const others = unique(concat([toGroups.other, ccGroups.other]));
|
||||
|
||||
resolver ??= new Resolver();
|
||||
const limit = promiseLimit<CacheableUser | null>(2);
|
||||
const mentionedUsers = (
|
||||
await Promise.all(
|
||||
|
Loading…
Reference in New Issue
Block a user