restrict "mark all events seen" to only the events that are presented in the notification view.
This commit is contained in:
parent
89739c0ff7
commit
9b1c09fe83
@ -173,8 +173,10 @@ function ping_init(&$a) {
|
||||
);
|
||||
break;
|
||||
case 'all_events':
|
||||
$r = q("update event set `ignore` = 1 where `ignore` = 0 and uid = %d",
|
||||
intval(local_channel())
|
||||
$r = q("update event set `ignore` = 1 where `ignore` = 0 and uid = %d AND start < '%s' AND start > '%s' ",
|
||||
intval(local_channel()),
|
||||
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + ' . intval($evdays) . ' days')),
|
||||
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now - 1 days'))
|
||||
);
|
||||
break;
|
||||
case 'notify':
|
||||
|
@ -1 +1 @@
|
||||
2015-02-06.937
|
||||
2015-02-08.939
|
||||
|
Reference in New Issue
Block a user