fedimbed: length check images
This commit is contained in:
parent
074271e1a7
commit
727af991ce
1 changed files with 6 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue