From 0842ae07098f3f7d04f880f5c6204c002e3c4eb9 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Wed, 2 Aug 2023 00:45:40 +0000 Subject: [PATCH] Mastodon API: convert quote_id format --- packages/backend/src/server/api/mastodon/endpoints/status.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/server/api/mastodon/endpoints/status.ts b/packages/backend/src/server/api/mastodon/endpoints/status.ts index 9ffcb30c3a..c3e6946e2f 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/status.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/status.ts @@ -27,6 +27,8 @@ export function apiStatusMastodon(router: Router): void { let body: any = ctx.request.body; if (body.in_reply_to_id) body.in_reply_to_id = convertId(body.in_reply_to_id, IdType.FirefishId); + if (body.quote_id) + body.quote_id = convertId(body.quote_id, IdType.FirefishId); if ( (!body.poll && body["poll[options][]"]) || (!body.media_ids && body["media_ids[]"])