if ($total > 0) {
foreach ($item['children'] as $child) {
- if (! visible_activity($child))
+ if (! visible_activity($child)) {
$total --;
+ }
$total += count_descendants($child);
}
}
* likes (etc.) can apply to other things besides posts. Check if they are post children,
* in which case we handle them specially
*/
-
$hidden_activities = array(ACTIVITY_LIKE, ACTIVITY_DISLIKE, ACTIVITY_ATTEND, ACTIVITY_ATTENDNO, ACTIVITY_ATTENDMAYBE);
foreach ($hidden_activities as $act) {
if (activity_match($item['verb'],$act)) {