X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fping.php;h=4260bbfb96419cf6b9ce7e870914215e9b69c4fb;hb=6092567c977d9e28df9558db51bd5b3d269740e8;hp=35812534735c4961e058b79b3d3f4c64994e9270;hpb=9441ff5142551d1db547ac7ff80c897a52c934c7;p=friendica.git diff --git a/mod/ping.php b/mod/ping.php index 3581253473..4260bbfb96 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -14,8 +14,8 @@ function ping_init(&$a) { $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()) ); @@ -135,7 +135,7 @@ function ping_init(&$a) { echo ' '; 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']))); } } }