From 0c73344966111a7782cea698ecd6a73703eb7b10 Mon Sep 17 00:00:00 2001 From: CutestNekoAqua Date: Sat, 18 Feb 2023 17:24:58 +0100 Subject: [PATCH] fix oopsie --- packages/backend/src/server/api/mastodon/endpoints/account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index 25a1abcc03..8ff7ba0085 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -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";