From 421921d4d0f0327b2d62d4e1a169771a3feb7db3 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 4 Feb 2013 00:03:19 -0800 Subject: debugging mark all seen for various notification types --- mod/ping.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/ping.php') diff --git a/mod/ping.php b/mod/ping.php index 4ab7a68cb..0e3ad83db 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -49,6 +49,7 @@ function ping_init(&$a) { } if(x($_REQUEST,'markRead') && local_user()) { + switch($_REQUEST['markRead']) { case 'network': $r = q("update item set item_flags = ( item_flags ^ %d ) where (item_flags & %d) and uid = %d", @@ -67,7 +68,7 @@ function ping_init(&$a) { ); break; case 'messages': - $r = q("update mail set mail_flags = ( item_flags ^ %d ) where uid = %d and not (item_flags & %d)", + $r = q("update mail set mail_flags = ( mail_flags ^ %d ) where channel_id = %d and not (mail_flags & %d)", intval(MAIL_SEEN), intval(local_user()), intval(MAIL_SEEN) -- cgit v1.2.3