From 354937abdd9b99da4a1c564c73cf3cce53ba8350 Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 19:49:30 +0200 Subject: [PATCH] upd: actually use body --- packages/backend/src/server/api/mastodon/endpoints/status.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/mastodon/endpoints/status.ts b/packages/backend/src/server/api/mastodon/endpoints/status.ts index 4a7065343..20401437e 100644 --- a/packages/backend/src/server/api/mastodon/endpoints/status.ts +++ b/packages/backend/src/server/api/mastodon/endpoints/status.ts @@ -224,7 +224,7 @@ export class ApiStatusMastodon { if (body.media_ids) { body.media_ids = (body.media_ids as string[]).map((p) => convertId(p, IdType.SharkeyId)); } - const data = await client.editStatus(convertId(_request.params.id, IdType.SharkeyId), _request.body!); + const data = await client.editStatus(convertId(_request.params.id, IdType.SharkeyId), body); reply.send(convertStatus(data.data)); } catch (e: any) { console.error(e);