fedimbed: length check images

This commit is contained in:
Cynthia Foxwell 2025-04-18 14:08:08 -06:00
parent 074271e1a7
commit 727af991ce
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -770,10 +770,12 @@ async function bluesky(msg, url, spoiler = false) {
} }
}*/ }*/
container.components.push({ if (images.length > 0) {
type: 12, container.components.push({
items: images, type: 12,
}); items: images,
});
}
for (const video of videos) { for (const video of videos) {
container.components.push({ container.components.push({
type: 12, type: 12,