the rest of the backend for supporting scroll-to-comment from notifications. We still need an ajax handler as fragments are evaluated before content is loaded.

This commit is contained in:
redmatrix
2016-09-24 16:20:25 -07:00
parent dca4db9d4d
commit c04c57ea0f
4 changed files with 10 additions and 2 deletions

View File

@@ -412,6 +412,9 @@ class ThreadItem {
if($visible_comments === false)
$visible_comments = 3;
if(in_array(\App::$module,['display','update_display']))
$visible_comments = 99999;
if(($this->get_display_mode() === 'normal') && ($nb_children > 0)) {
foreach($children as $child) {
$result['children'][] = $child->get_template_data($conv_responses, $thread_level + 1);