From ad46ccfd335029489b7a821948605b491cfd1e99 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Mon, 13 Feb 2023 17:08:48 +0100 Subject: [PATCH] nya --- packages/backend/src/server/api/mastodon/endpoints/account.ts | 3 ++- 1 file changed, 2 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 f37a73a5e0..34a02a9d2e 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -311,8 +311,9 @@ export function apiAccountMastodon(router: Router): void { } catch (e: any) { console.error(e); console.error(e.response.data); + e.response.data.user = users ? users : 'null'; ctx.status = 401; - ctx.body = { ...e.response.data, ...{user: users ? users : 'null'} }; + ctx.body = e.response.data; } }); router.get("/v1/bookmarks", async (ctx) => {