This commit is contained in:
cutestnekoaqua 2023-02-13 17:08:48 +01:00
parent b1ef858b49
commit ad46ccfd33
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 2 additions and 1 deletions

View File

@ -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) => {