diff --git a/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts b/packages/backend/src/server/api/mastodon/MastodonApiServerService.ts index c96c7a4618..128cb3491a 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,11 +158,10 @@ 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); } }); diff --git a/packages/backend/src/server/api/mastodon/endpoints/status.ts b/packages/backend/src/server/api/mastodon/endpoints/status.ts index d21f48abad..991adacb0c 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/status.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/status.ts @@ -377,7 +377,7 @@ export class ApiStatusMastodon { const data = await client.updateMedia(convertId(_request.params.id, IdType.SharkeyId), _request.body as any); reply.send(convertAttachment(data.data)); } catch (e: any) { - console.error(e); + /* console.error(e); */ reply.code(401).send(e.response.data); } }); diff --git a/packages/megalodon/src/misskey.ts b/packages/megalodon/src/misskey.ts index 23506d6e6d..c4374adcb4 100644 --- a/packages/megalodon/src/misskey.ts +++ b/packages/megalodon/src/misskey.ts @@ -1446,6 +1446,11 @@ export default class Misskey implements MegalodonInterface { isSensitive: options.is_sensitive }) } + if (options.description !== undefined) { + params = Object.assign(params, { + comment: options.description, + }); + } } return this.client .post('/api/drive/files/update', params)