diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-09-25 18:35:52 +0200 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-09-25 18:35:52 +0200 |
| commit | 2bda4f1768b4f92d5012c28d8bb4b0c1989472da (patch) | |
| tree | 686d20674c1a1024187a853e6389a851f6025f1f /packages/backend/src/server/api | |
| parent | ci: add wildcards (diff) | |
| download | sharkey-2bda4f1768b4f92d5012c28d8bb4b0c1989472da.tar.gz sharkey-2bda4f1768b4f92d5012c28d8bb4b0c1989472da.tar.bz2 sharkey-2bda4f1768b4f92d5012c28d8bb4b0c1989472da.zip | |
test: enable error logs for media
Diffstat (limited to 'packages/backend/src/server/api')
| -rw-r--r-- | packages/backend/src/server/api/mastodon/MastodonApiServerService.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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); } }); |