From 12a2e222b7856d8a42dd714f8ce9bf6f6cb0d7e8 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 5 Apr 2025 11:31:30 -0600 Subject: [PATCH] fedimbed: function overload moment --- src/modules/fedimbed.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 0819a1d..7264b6e 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1242,9 +1242,8 @@ 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 [w, h] = tag.$sizes.split("x").map((x) => parseInt(x)); const size = w * h; if (size > lastIconSize) { lastIconSize = size; @@ -1269,14 +1268,10 @@ 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 post: ${icon}`); - const baseEmbed = { color, url,