From c7f16cf501aa817a333429e949deae1556e201d0 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Wed, 29 Nov 2023 01:55:41 -0700 Subject: [PATCH] fedimbed: debug time --- src/modules/fedimbed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 3fd90d9..44df9e4 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -717,6 +717,8 @@ async function processUrl(msg, url, spoiler = false) { }); } + logger.verbose("fedimbed", `Embeds should be 0: ${embeds.length}`); + if (images.length <= 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) { const eighteen = images.slice(14, 18); const _embed = { @@ -744,6 +748,8 @@ async function processUrl(msg, url, spoiler = false) { embeds.push(embed); } } + + logger.verbose("fedimbed", `Embeds should be 5-8: ${embeds.length}`); } } } else {