Decouple conversation creation from rendering
- This allows to separately obtain a list of threads for rendering without having to deal with an already-formed HTML output
This commit is contained in:
@@ -85,7 +85,7 @@ function notes_content(App $a, bool $update = false)
|
||||
|
||||
$count = count($notes);
|
||||
|
||||
$o .= DI::conversation()->create($notes, Conversation::MODE_NOTES, $update);
|
||||
$o .= DI::conversation()->render($notes, Conversation::MODE_NOTES, $update);
|
||||
}
|
||||
|
||||
$o .= $pager->renderMinimal($count);
|
||||
|
||||
Reference in New Issue
Block a user