From 3a6e78eef337941c6de96ec9f6d9d41db4caf141 Mon Sep 17 00:00:00 2001 From: diondiondion Date: Fri, 26 Jun 2026 17:48:46 +0200 Subject: [PATCH] Render post images in emails (#39636) --- app/views/notification_mailer/_status_content.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/notification_mailer/_status_content.html.haml b/app/views/notification_mailer/_status_content.html.haml index f95ba8ccba..3479c27997 100644 --- a/app/views/notification_mailer/_status_content.html.haml +++ b/app/views/notification_mailer/_status_content.html.haml @@ -9,7 +9,9 @@ - if status.ordered_media_attachments.size.positive? %p.email-status-media - status.ordered_media_attachments.each do |a| - - if status.local? + - if a.image? && !a.needs_redownload? + %img{ src: full_asset_url(a.file.url(:original)), alt: a.description } + - elsif status.local? = link_to full_asset_url(a.file.url(:original)), full_asset_url(a.file.url(:original)) - else = link_to a.remote_url, a.remote_url