mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
fix?
This commit is contained in:
parent
00fffc1068
commit
cdcd4320a9
@ -46,7 +46,7 @@ export function apiStatusMastodon(router: Router): void {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!body.media_ids) body.media_ids = undefined;
|
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.length) body.media_ids = undefined;
|
||||||
const { sensitive } = body
|
const { sensitive } = body
|
||||||
body.sensitive = typeof sensitive === 'string' ? sensitive === 'true' : sensitive
|
body.sensitive = typeof sensitive === 'string' ? sensitive === 'true' : sensitive
|
||||||
const data = await client.postStatus(text, body);
|
const data = await client.postStatus(text, body);
|
||||||
|
@ -43,10 +43,11 @@ export function toTextWithReaction(status: Entity.Status[], host: string) {
|
|||||||
for (const r of reaction) {
|
for (const r of reaction) {
|
||||||
if (!r.url) continue
|
if (!r.url) continue
|
||||||
emoji.push({
|
emoji.push({
|
||||||
'shortcode': r.name,
|
'shortcode': r.name,
|
||||||
'url': r.url,
|
'url': r.url,
|
||||||
'static_url': r.url,
|
'static_url': r.url,
|
||||||
'visible_in_picker': true,
|
'visible_in_picker': true,
|
||||||
|
category: ""
|
||||||
},)
|
},)
|
||||||
}
|
}
|
||||||
const isMe = reaction.findIndex((r) => r.me) > -1;
|
const isMe = reaction.findIndex((r) => r.me) > -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user