From 0072e025f44695741b0d3a6a453812aa56a081e2 Mon Sep 17 00:00:00 2001 From: chylex Date: Sun, 21 Apr 2024 18:47:03 +0200 Subject: [PATCH] Fix broken links to image embeds in viewer --- app/Resources/Viewer/scripts/discord.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Resources/Viewer/scripts/discord.mjs b/app/Resources/Viewer/scripts/discord.mjs index 9dec931..7596914 100644 --- a/app/Resources/Viewer/scripts/discord.mjs +++ b/app/Resources/Viewer/scripts/discord.mjs @@ -246,10 +246,10 @@ export default (function() { return templateEmbedUnsupported.apply(embed); } else if ("image" in embed && embed.image.url) { - return getImageEmbed(fileUrlProcessor(embed.url), embed.image); + return getImageEmbed(embed.url, embed.image); } else if ("thumbnail" in embed && embed.thumbnail.url) { - return getImageEmbed(fileUrlProcessor(embed.url), embed.thumbnail); + return getImageEmbed(embed.url, embed.thumbnail); } else if ("title" in embed && "description" in embed) { return templateEmbedRich.apply(embed);