diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-08 21:23:29 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-08 21:23:29 +0200 |
commit | 762157ee4e6bab04fb66903651e901bc83e333bb (patch) | |
tree | 93fe51ece850c6fac05bfbada2b9d57c6697b5cf /app/views | |
parent | 85d89b472dff2c3d06801dbd42f91c325d21a434 (diff) |
Fix for single status pages
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/stream_entries/_status.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |