From 95bf9324b47ab6b18612980ed13554b8bb9a289a Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 Aug 2012 23:42:45 -0700 Subject: [PATCH] fix child count --- include/conversation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/conversation.php b/include/conversation.php index df076de3ae..e6f998a9d9 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -336,11 +336,13 @@ function prepare_threads_body($a, $items, $cmnt_tpl, $page_writeable, $mode, $pr if($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) { // Don't count it as a visible item $nb_items--; + $total_children = $nb_items; continue; } if($item['verb'] === ACTIVITY_LIKE || $item['verb'] === ACTIVITY_DISLIKE) { $nb_items --; + $total_children = $nb_items; continue; }