Skip to content

Commit e265b88

Browse files
mayaehGargron
authored andcommitted
Fix NotificationMailer failing when receiving mention with media from remote instance (#11765)
1 parent 7db2c2e commit e265b88

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/views/notification_mailer/_status.html.haml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@
3636
- if status.media_attachments.size > 0
3737
%p
3838
- status.media_attachments.each do |a|
39-
= link_to medium_url(a), medium_url(a)
39+
- if status.local?
40+
= link_to medium_url(a), medium_url(a)
41+
- else
42+
= link_to a.remote_url, a.remote_url
4043

4144
%p.status-footer
4245
= link_to l(status.created_at), web_url("statuses/#{status.id}")

0 commit comments

Comments
 (0)