Fix for single status pages
This commit is contained in:
parent
85d89b472d
commit
762157ee4e
4 changed files with 26 additions and 4 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue