[mastodon-client] Fix posting statuses with attachment
This commit is contained in:
parent
147e9f1e89
commit
6606abd7d9
|
@ -59,6 +59,9 @@ export function apiStatusMastodon(router: Router): void {
|
|||
}
|
||||
if (!body.media_ids) body.media_ids = undefined;
|
||||
if (body.media_ids && !body.media_ids.length) body.media_ids = undefined;
|
||||
if (body.media_ids) {
|
||||
body.media_ids = (body.media_ids as string[]).map(p => convertId(p, IdType.CalckeyId));
|
||||
}
|
||||
const { sensitive } = body;
|
||||
body.sensitive =
|
||||
typeof sensitive === "string" ? sensitive === "true" : sensitive;
|
||||
|
|
Loading…
Reference in New Issue