From f284c8b9d525a6953d1e344086ad91963375ea69 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Sat, 3 Dec 2022 12:46:04 -0700 Subject: [PATCH] foxwells.vinboard: fix standalone image links --- src/modules/foxwells.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/foxwells.js b/src/modules/foxwells.js index e44db53..28c3805 100644 --- a/src/modules/foxwells.js +++ b/src/modules/foxwells.js @@ -190,7 +190,9 @@ async function findSuitableImage(msg) { } else { for (const embed of msg.embeds) { if (!embed.url) continue; - if (embed.image) { + if (embed.url && /(jpe?g|png|gif|webp)$/.test(url)) { + out.url = embed.url; + } else if (embed.image) { out.url = embed.image.url; break; } else if (embed.video) {