From 762157ee4e6bab04fb66903651e901bc83e333bb Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 8 Sep 2016 21:23:29 +0200 Subject: Fix for single status pages --- app/views/stream_entries/_status.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml index defadffc6..ece31d0e2 100644 --- a/app/views/stream_entries/_status.html.haml +++ b/app/views/stream_entries/_status.html.haml @@ -4,7 +4,7 @@ - centered = include_threads && !is_predecessor && !is_successor - if status.reply? && include_threads - - status.ancestors.with_includes.with_counters.each do |status| + - @ancestors.each do |status| = render partial: 'status', locals: { status: status, is_predecessor: true } .entry{ class: entry_classes(status, is_predecessor, is_successor, include_threads) } @@ -43,5 +43,5 @@ %li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank' - if include_threads - - status.descendants.with_includes.with_counters.each do |status| + - @descendants.each do |status| = render partial: 'status', locals: { status: status, is_successor: true } -- cgit