Skip to content

Commit

Permalink
Fix NotificationMailer failing when receiving mention with media from…
Browse files Browse the repository at this point in the history
… remote instance (#11765)
  • Loading branch information
mayaeh authored and Gargron committed Sep 5, 2019
1 parent 7db2c2e commit e265b88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/notification_mailer/_status.html.haml
Expand Up @@ -36,7 +36,10 @@
- if status.media_attachments.size > 0
%p
- status.media_attachments.each do |a|
= link_to medium_url(a), medium_url(a)
- if status.local?
= link_to medium_url(a), medium_url(a)
- else
= link_to a.remote_url, a.remote_url

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

0 comments on commit e265b88

Please sign in to comment.