Ancestors and descendants of statuses
This commit is contained in:
parent
7e00a21ea6
commit
35aafdba96
3 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
- if status.reply? && include_threads
|
||||
= render partial: 'status', locals: { status: status.thread, include_threads: false, is_predecessor: true, is_successor: false }
|
||||
- status.ancestors.with_includes.with_counters.each do |status|
|
||||
= render partial: 'status', locals: { status: status, include_threads: false, is_predecessor: true, is_successor: false }
|
||||
|
||||
.entry{ class: entry_classes(status, is_predecessor, is_successor, include_threads) }
|
||||
- if status.reblog?
|
||||
|
@ -32,5 +33,5 @@
|
|||
= status.reblog? ? (status.reblog.local? ? linkify(status.reblog) : status.reblog.content.html_safe) : (status.local? ? linkify(status) : status.content.html_safe)
|
||||
|
||||
- if include_threads
|
||||
- status.replies.each do |status|
|
||||
- status.descendants.with_includes.with_counters.each do |status|
|
||||
= render partial: 'status', locals: { status: status, include_threads: false, is_successor: true, is_predecessor: false }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue