From 03f7ba241aed2da83ddbc92c0ddc7520859ce3c5 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 f37a73a5e..34a02a9d2 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) => {