aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-11-12 19:38:24 -0500
committerAndrew Manning <tamanning@zoho.com>2016-11-12 19:38:24 -0500
commit52cbbed6a07e11de6b30e150e650fd3bea1387ff (patch)
treee80e3538e6dc90fff62bd776f16fad89ac119c96 /Zotlabs
parent4b624ab5da99a2937bb56aa3e123223f9917d439 (diff)
parent640d15dba548533fbda5d73d04db8f6896197026 (diff)
downloadvolse-hubzilla-52cbbed6a07e11de6b30e150e650fd3bea1387ff.tar.gz
volse-hubzilla-52cbbed6a07e11de6b30e150e650fd3bea1387ff.tar.bz2
volse-hubzilla-52cbbed6a07e11de6b30e150e650fd3bea1387ff.zip
Merge remote-tracking branch 'upstream/dev' into wiki
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/Enotify.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index ffe2f0950..b6f4d3351 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -102,6 +102,10 @@ class Enotify {
$title = $params['item']['title'];
$body = $params['item']['body'];
}
+ if($item['created'] < datetime_convert('UTC','UTC','now - 1 month')) {
+ logger('notification invoked for an old item which may have been refetched.',LOGGER_DEBUG,LOG_INFO);
+ return;
+ }
}
else {
$title = $body = '';