fix oopsie

This commit is contained in:
CutestNekoAqua 2023-02-18 17:24:58 +01:00
parent d418fee933
commit 0c73344966

View file

@ -305,7 +305,7 @@ export function apiAccountMastodon(router: Router): void {
let users;
try {
// TODO: this should be body
const idsRaw = ctx.request.query ? ["id[]"] : null;
const idsRaw = ctx.request.query ? ctx.request.query["id[]"] : null;
const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw;
users = ids;
relationshopModel.id = idsRaw?.toString() || "1";