diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-11-12 19:38:24 -0500 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-11-12 19:38:24 -0500 |
commit | 52cbbed6a07e11de6b30e150e650fd3bea1387ff (patch) | |
tree | e80e3538e6dc90fff62bd776f16fad89ac119c96 /Zotlabs | |
parent | 4b624ab5da99a2937bb56aa3e123223f9917d439 (diff) | |
parent | 640d15dba548533fbda5d73d04db8f6896197026 (diff) | |
download | volse-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.php | 4 |
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 = ''; |