Show media of reblogged statuses in public html view

This commit is contained in:
Eugen Rochko 2016-10-10 18:23:08 +02:00
parent 68eed8c61f
commit 451733961b

View file

@ -32,7 +32,7 @@
.content= Formatter.instance.format(proper_status(status)) .content= Formatter.instance.format(proper_status(status))
%ul.media-attachments %ul.media-attachments
- status.media_attachments.each do |media| - (status.reblog? ? status.reblog : status).media_attachments.each do |media|
%li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank' %li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank'
- if include_threads - if include_threads