Fix broken links to image embeds in viewer

This commit is contained in:
chylex 2024-04-21 18:47:03 +02:00
parent 383ee5c90e
commit 0072e025f4
No known key found for this signature in database
GPG Key ID: 4DE42C8F19A80548

View File

@ -246,10 +246,10 @@ export default (function() {
return templateEmbedUnsupported.apply(embed); return templateEmbedUnsupported.apply(embed);
} }
else if ("image" in embed && embed.image.url) { 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) { 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) { else if ("title" in embed && "description" in embed) {
return templateEmbedRich.apply(embed); return templateEmbedRich.apply(embed);