fedimbed: debug time

This commit is contained in:
Cynthia Foxwell 2023-11-29 01:55:41 -07:00
parent 3388784690
commit c7f16cf501
1 changed files with 6 additions and 0 deletions

View File

@ -717,6 +717,8 @@ async function processUrl(msg, url, spoiler = false) {
}); });
} }
logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`);
if (images.length <= 14) { if (images.length <= 14) {
const fourteen = images.slice(10, 14); const fourteen = images.slice(10, 14);
@ -729,6 +731,8 @@ async function processUrl(msg, url, spoiler = false) {
} }
} }
logger.verbose("fedimbed", `Embeds should be 1-4: ${embeds.length}`);
if (images.length <= 18) { if (images.length <= 18) {
const eighteen = images.slice(14, 18); const eighteen = images.slice(14, 18);
const _embed = { const _embed = {
@ -744,6 +748,8 @@ async function processUrl(msg, url, spoiler = false) {
embeds.push(embed); embeds.push(embed);
} }
} }
logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`);
} }
} }
} else { } else {