From 366ac71e853f4fe0883d527dc2e8f15bb6eeaca3 Mon Sep 17 00:00:00 2001 From: Pablo Stebler Date: Thu, 26 Feb 2026 21:35:55 +0100 Subject: [PATCH] Add support for signed attachment:// urls --- src/webpage/embed.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/webpage/embed.ts b/src/webpage/embed.ts index bdab81a8..77cc5e62 100644 --- a/src/webpage/embed.ts +++ b/src/webpage/embed.ts @@ -100,7 +100,10 @@ class Embed { if (this.json.author.icon_url) { const img = document.createElement("img"); img.classList.add("authorEmbedImg"); - img.src = this.json.author.icon_url; + this.localuser.refreshIfNeeded(this.json.author.icon_url).then(url => { + this.json.author.icon_url = url; + img.src = url; + }); authorline.append(img); } const a = this.json.author.url ? document.createElement("a") : document.createElement("span"); @@ -149,7 +152,10 @@ class Embed { const footer = document.createElement("div"); if (this.json?.footer?.icon_url) { const img = document.createElement("img"); - img.src = this.json.footer.icon_url; + this.localuser.refreshIfNeeded(this.json.footer.icon_url).then(url => { + this.json.footer.icon_url = url; + img.src = url; + }); img.classList.add("embedicon"); footer.append(img); }