fedimbed: move files define

This commit is contained in:
Cynthia Foxwell 2023-11-29 01:26:59 -07:00
parent 4bbe1a89d2
commit b65865b10f
1 changed files with 1 additions and 2 deletions

View File

@ -635,6 +635,7 @@ async function processUrl(msg, url, spoiler = false) {
}
const embeds = [];
const files = [];
if (images.length > 0) {
if (images.length == 4) {
@ -743,8 +744,6 @@ async function processUrl(msg, url, spoiler = false) {
embeds.push(baseEmbed);
}
const files = [];
if (videos.length > 0) {
for (const attachment of videos) {
const size = await fetch(attachment.url, {