]> git.mxchange.org Git - friendica.git/commitdiff
fix child count
authorfriendica <info@friendica.com>
Sat, 11 Aug 2012 06:42:45 +0000 (23:42 -0700)
committerfriendica <info@friendica.com>
Sat, 11 Aug 2012 06:42:45 +0000 (23:42 -0700)
include/conversation.php

index df076de3aea387a94bbde7b85eaa04726e2d1a8b..e6f998a9d94a196a54c45b909fcb21a7f7e8f6d0 100644 (file)
@@ -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;
                }