commit: 451733961b6499edafbbb6bae206671e564b31b8
parent: 68eed8c61fd4dd5d7f5ed119848ccb4694140be5
Author: Eugen Rochko <eugen@zeonfederated.com>
Date: Mon, 10 Oct 2016 18:23:08 +0200
Show media of reblogged statuses in public html view
Diffstat:
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
@@ -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