fedimbed: indentation moment

This commit is contained in:
Cynthia Foxwell 2023-11-29 01:59:38 -07:00
parent c7f16cf501
commit c031f23a53

View file

@ -716,8 +716,7 @@ async function processUrl(msg, url, spoiler = false) {
description: attachment.desc,
});
}
logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`);
}
if (images.length <= 14) {
const fourteen = images.slice(10, 14);
@ -731,8 +730,6 @@ async function processUrl(msg, url, spoiler = false) {
}
}
logger.verbose("fedimbed", `Embeds should be 1-4: ${embeds.length}`);
if (images.length <= 18) {
const eighteen = images.slice(14, 18);
const _embed = {
@ -748,9 +745,6 @@ async function processUrl(msg, url, spoiler = false) {
embeds.push(embed);
}
}
logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`);
}
}
} else {
embeds.push(baseEmbed);
@ -823,8 +817,6 @@ async function processUrl(msg, url, spoiler = false) {
}
}
logger.verbose("fedimbed", `Embed count: ${embeds.length}`);
await msg.channel
.createMessage({
content: