From 43f73c35fde1a0281f918b197c5aa871bd0319d3 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Mon, 10 Oct 2016 18:23:08 +0200 Subject: [PATCH] Show media of reblogged statuses in public html view --- app/views/stream_entries/_status.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml index 4e74fa1313..fc21e6c45a 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