From d418fee933d6cf44d5ed188062cc1e68706486a6 Mon Sep 17 00:00:00 2001 From: CutestNekoAqua Date: Sat, 18 Feb 2023 17:22:43 +0100 Subject: [PATCH] debug print users --- .../backend/src/server/api/mastodon/endpoints/account.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/account.ts b/packages/backend/src/server/api/mastodon/endpoints/account.ts index a93b1f5962..25a1abcc03 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/account.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/account.ts @@ -317,9 +317,11 @@ export function apiAccountMastodon(router: Router): void { ctx.body = data.data; } catch (e: any) { console.error(e); - console.error(e.response.data); + let data = e.response.data; + data.users = users; + console.error(data); ctx.status = 401; - ctx.body = e.response.data; + ctx.body = data; } }); router.get("/v1/bookmarks", async (ctx) => {