fix child count

This commit is contained in:
friendica 2012-08-10 23:42:45 -07:00
parent 20be1778db
commit 95bf9324b4

View 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']) { if($item['network'] === NETWORK_MAIL && local_user() != $item['uid']) {
// Don't count it as a visible item // Don't count it as a visible item
$nb_items--; $nb_items--;
$total_children = $nb_items;
continue; continue;
} }
if($item['verb'] === ACTIVITY_LIKE || $item['verb'] === ACTIVITY_DISLIKE) { if($item['verb'] === ACTIVITY_LIKE || $item['verb'] === ACTIVITY_DISLIKE) {
$nb_items --; $nb_items --;
$total_children = $nb_items;
continue; continue;
} }