mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Mastodon API: convert quote_id format
Allows quote posting through Mastodon API (using Fedibird/Treehouse extension).
This commit is contained in:
parent
de28d40af5
commit
d072f014b1
1 changed files with 2 additions and 0 deletions
|
@ -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[]"])
|
||||
|
|
Loading…
Reference in a new issue