upd: actually use body
This commit is contained in:
parent
314122f509
commit
354937abdd
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ export class ApiStatusMastodon {
|
||||||
if (body.media_ids) {
|
if (body.media_ids) {
|
||||||
body.media_ids = (body.media_ids as string[]).map((p) => convertId(p, IdType.SharkeyId));
|
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));
|
reply.send(convertStatus(data.data));
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
|
Loading…
Reference in a new issue