case ACTIVITY_DISLIKE:
$dislikes[] = $it;
break;
- case ACTIVITY_POST;
- $posts[] = $it;
- break;
case ACTIVITY_FRIEND:
$xmlhead="<"."?xml version='1.0' encoding='UTF-8' ?".">";
$obj = parse_xml_string($xmlhead.$it['object']);
$friends[] = $it;
break;
default:
- if ($it['parent']!=$it['id']) $comments[] = $it;
+ if ($it['parent']!=$it['id']) {
+ $comments[] = $it;
+ } else {
+ $posts[] = $it;
+ }
}
}
-
$r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`author-name`,
`item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`,
`pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink`
<home>$home</home>";
if ($register!=0) echo "<register>$register</register>";
- $tot = $mail+$intro+$register+count($comments)+count($likes)+count($dislikes)+count($friends);
+ $tot = $mail+$intro+$register+count($comments)+count($likes)+count($dislikes)+count($friends)+count($posts);
echo ' <notif count="'.$tot.'">';
if ($intro>0){