Fix NotificationMailer failing when receiving mention with media from remote instance (#11765)

lolsob-rspec
mayaeh 2019-09-05 13:14:30 +09:00 committed by Eugen Rochko
parent f6cd27f41f
commit f743f7a7bf
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@
- if status.media_attachments.size > 0 - if status.media_attachments.size > 0
%p %p
- status.media_attachments.each do |a| - 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 %p.status-footer
= link_to l(status.created_at), web_url("statuses/#{status.id}") = link_to l(status.created_at), web_url("statuses/#{status.id}")