diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index 128cb3491a..c96c7a4618 100644 --- a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts +++ b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts @@ -143,7 +143,7 @@ export class MastodonApiServerService { const data = await client.uploadMedia(multipartData); reply.send(convertAttachment(data.data as Entity.Attachment)); } catch (e: any) { - /* console.error(e); */ + console.error(e); reply.code(401).send(e.response.data); } }); @@ -158,10 +158,11 @@ export class MastodonApiServerService { reply.code(401).send({ error: 'No image' }); return; } + console.error(_request.body); const data = await client.uploadMedia(multipartData, _request.body!); reply.send(convertAttachment(data.data as Entity.Attachment)); } catch (e: any) { - /* console.error(e); */ + console.error(e); reply.code(401).send(e.response.data); } });