upd: actually use body

This commit is contained in:
Mar0xy 2023-09-25 19:49:30 +02:00
parent 314122f509
commit 354937abdd
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828

View File

@ -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);