about summary refs log tree commit diff
path: root/app/views/stream_entries
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-10-10 18:23:08 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-10-10 18:23:08 +0200
commit451733961b6499edafbbb6bae206671e564b31b8 (patch)
treefb08774818b997889e92658634087fd754f4bcca /app/views/stream_entries
parent68eed8c61fd4dd5d7f5ed119848ccb4694140be5 (diff)
Show media of reblogged statuses in public html view
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r--app/views/stream_entries/_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml
index 4e74fa131..fc21e6c45 100644
--- a/app/views/stream_entries/_status.html.haml
+++ b/app/views/stream_entries/_status.html.haml
@@ -32,7 +32,7 @@
       .content= Formatter.instance.format(proper_status(status))
 
       %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'
 
 - if include_threads