From 45929f95f435c9866dcbc54f2613e38cc2b5f2b8 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Mon, 13 Feb 2023 20:36:13 +0100 Subject: [PATCH] uwu --- .../backend/src/server/api/mastodon/endpoints/account.ts | 5 ++++- 1 file changed, 4 insertions(+), 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 8c0111f999..b089f04774 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -308,7 +308,10 @@ export function apiAccountMastodon(router: Router): void { const ids = typeof idsRaw === "string" ? [idsRaw] : idsRaw; users = ids; relationshopModel.id = idsRaw?.toString() || "1"; - if (!ids) return [relationshopModel]; + if (!ids) { + ctx.body = [relationshopModel]; + return; + } const data = await client.getRelationships(ids); ctx.body = data.data; } catch (e: any) {