$firehose = intval(get_pconfig(local_user(),'system','notify_full'));
- $z = q("select * from notify where seen = 0 and uid = %d
- order by date desc",
+ $z = q("select * from notify where uid = %d
+ order by seen asc, date desc limit 0, 50",
intval(local_user())
);
echo ' <notif count="'. count($z) .'">';
if(count($z)) {
foreach($z as $zz) {
- echo xmlize($a->get_baseurl() . '/notify/view' . $zz['id'], $zz['name'],$zz['url'],$zz['photo'],relative_date($zz['date']), strip_tags(bbcode($zz['msg'])));
+ echo xmlize($a->get_baseurl() . '/notify/view/' . $zz['id'], $zz['name'],$zz['url'],$zz['photo'],relative_date($zz['date']), ($zz['seen'] ? '' : '! ') .strip_tags(bbcode($zz['msg'])));
}
}
}