Browse Source

Show media of reblogged statuses in public html view

master
Eugen Rochko 8 years ago
parent
commit
451733961b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/stream_entries/_status.html.haml

+ 1
- 1
app/views/stream_entries/_status.html.haml 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

Loading…
Cancel
Save