aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-08-22 14:35:17 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-08-22 14:35:17 -0700
commitc9b8f404e073007093b465defa0d15c9bbd3f37f (patch)
treea8ec34971d5750f80821e4fea52373ed21f7bc3d
parent39df2a475e66e2068fc2a4e3c069874f6ee6e7c1 (diff)
downloadvolse-hubzilla-c9b8f404e073007093b465defa0d15c9bbd3f37f.tar.gz
volse-hubzilla-c9b8f404e073007093b465defa0d15c9bbd3f37f.tar.bz2
volse-hubzilla-c9b8f404e073007093b465defa0d15c9bbd3f37f.zip
restrict event notification to events and birthdays (exclude tasks)
-rw-r--r--mod/ping.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/mod/ping.php b/mod/ping.php
index 719183388..394dbf089 100644
--- a/mod/ping.php
+++ b/mod/ping.php
@@ -321,6 +321,7 @@ function ping_init(&$a) {
$r = q("SELECT * FROM event left join xchan on event_xchan = xchan_hash
WHERE `event`.`uid` = %d AND start < '%s' AND start > '%s' and `ignore` = 0
+ and type in ( 'event', 'birthday' )
ORDER BY `start` DESC LIMIT 1000",
intval(local_channel()),
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + ' . intval($evdays) . ' days')),
@@ -439,6 +440,7 @@ function ping_init(&$a) {
if($vnotify & (VNOTIFY_EVENT|VNOTIFY_EVENTTODAY|VNOTIFY_BIRTHDAY)) {
$events = q("SELECT type, start, adjust FROM `event`
WHERE `event`.`uid` = %d AND start < '%s' AND start > '%s' and `ignore` = 0
+ and type in ( 'event', 'birthday' )
ORDER BY `start` ASC ",
intval(local_channel()),
dbesc(datetime_convert('UTC', date_default_timezone_get(), 'now + ' . intval($evdays) . ' days')),