From c8c73baa241aa0b593cd0c937be3998f8fed2bc9 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 5 Apr 2025 11:29:17 -0600 Subject: [PATCH] fedimbed: more icon debug --- src/modules/fedimbed.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index f2aebec..0819a1d 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1242,6 +1242,7 @@ async function processUrl(msg, url, spoiler = false, command = false) { if (headTag) { for (const tag of headTag.link) { if (tag.$rel == "icon" || tag.$rel == "apple-touch-icon") { + logger.verbose("fedimbed", `icon tag: ${JSON.stringify(tag)}`); if (tag.$sizes) { const [w, h] = tag.$sizes.split("x").map(parseInt); const size = w * h; @@ -1268,11 +1269,13 @@ async function processUrl(msg, url, spoiler = false, command = false) { } } + logger.verbose("fedimbed", `icon pre: ${icon}`); + if (icon && icon.startsWith("/")) { icon = urlObj.origin + icon; } - logger.verbose("fedimbed", `icon: ${icon}`); + logger.verbose("fedimbed", `icon post: ${icon}`); const baseEmbed = { color,