restrict "mark all events seen" to only the events that are presented in the notification view.

This commit is contained in:
friendica 2015-02-08 13:52:46 -08:00
parent 89739c0ff7
commit 9b1c09fe83
2 changed files with 5 additions and 3 deletions

View File

@ -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':

View File

@ -1 +1 @@
2015-02-06.937
2015-02-08.939