From 8d29e25823a9095a439f20d23fc44dddab5025fc Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 22 Dec 2024 08:07:26 -0800 Subject: [PATCH] Don't bother sending a RemoteUrl for DM images if they're not downloaded yet, since they can't be loaded without an authentication token anyway --- internal/webserver/tpl/tweet_page_includes/chat_view.tpl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/internal/webserver/tpl/tweet_page_includes/chat_view.tpl b/internal/webserver/tpl/tweet_page_includes/chat_view.tpl index 2c42ad6..a81ccae 100644 --- a/internal/webserver/tpl/tweet_page_includes/chat_view.tpl +++ b/internal/webserver/tpl/tweet_page_includes/chat_view.tpl @@ -37,12 +37,10 @@ {{end}} {{range .Images}} + {{/* DM images can only be loaded with an authenticated session. So sending the RemoteUrl + in an tag is not useful; it will just HTTP 401 */}}