aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-24 23:44:55 -0800
committerfriendica <info@friendica.com>2012-02-24 23:44:55 -0800
commit6092567c977d9e28df9558db51bd5b3d269740e8 (patch)
treede1e30a7481627922c1e4bbd1d5d105c70fbd0ea /mod/ping.php
parent9441ff5142551d1db547ac7ff80c897a52c934c7 (diff)
downloadvolse-hubzilla-6092567c977d9e28df9558db51bd5b3d269740e8.tar.gz
volse-hubzilla-6092567c977d9e28df9558db51bd5b3d269740e8.tar.bz2
volse-hubzilla-6092567c977d9e28df9558db51bd5b3d269740e8.zip
notifications to zeros, bug in notify link
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 358125347..4260bbfb9 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 ' <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'])));
}
}
}