Paginate descendant statuses in public page (#7148)
This commit is contained in:
committed by
Eugen Rochko
parent
06817b3c1f
commit
1258efa882
@ -24,6 +24,7 @@ describe 'stream_entries/show.html.haml', without_verify_partial_doubles: true d
|
||||
assign(:stream_entry, status.stream_entry)
|
||||
assign(:account, alice)
|
||||
assign(:type, status.stream_entry.activity_type.downcase)
|
||||
assign(:descendant_threads, [])
|
||||
|
||||
render
|
||||
|
||||
@ -49,7 +50,7 @@ describe 'stream_entries/show.html.haml', without_verify_partial_doubles: true d
|
||||
assign(:account, alice)
|
||||
assign(:type, reply.stream_entry.activity_type.downcase)
|
||||
assign(:ancestors, reply.stream_entry.activity.ancestors(1, bob) )
|
||||
assign(:descendants, reply.stream_entry.activity.descendants(bob))
|
||||
assign(:descendant_threads, [{ statuses: reply.stream_entry.activity.descendants(1)}])
|
||||
|
||||
render
|
||||
|
||||
@ -75,6 +76,7 @@ describe 'stream_entries/show.html.haml', without_verify_partial_doubles: true d
|
||||
assign(:stream_entry, status.stream_entry)
|
||||
assign(:account, alice)
|
||||
assign(:type, status.stream_entry.activity_type.downcase)
|
||||
assign(:descendant_threads, [])
|
||||
|
||||
render
|
||||
|
||||
|
Reference in New Issue
Block a user