aboutsummaryrefslogtreecommitdiffstats
path: root/mod/ping.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-04 00:03:19 -0800
committerfriendica <info@friendica.com>2013-02-04 00:03:19 -0800
commit421921d4d0f0327b2d62d4e1a169771a3feb7db3 (patch)
treef84575ea48a7d7bec1a38bb798f5a4f120ae7260 /mod/ping.php
parent13ff4b9f0150ae9118368d00d3dcc458f32ba68e (diff)
downloadvolse-hubzilla-421921d4d0f0327b2d62d4e1a169771a3feb7db3.tar.gz
volse-hubzilla-421921d4d0f0327b2d62d4e1a169771a3feb7db3.tar.bz2
volse-hubzilla-421921d4d0f0327b2d62d4e1a169771a3feb7db3.zip
debugging mark all seen for various notification types
Diffstat (limited to 'mod/ping.php')
-rw-r--r--mod/ping.php3
1 files changed, 2 insertions, 1 deletions
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)