aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-25 17:06:13 -0700
committerredmatrix <mike@macgirvin.com>2016-09-25 17:06:13 -0700
commitfb9544badd66043bf7ee5a7566ba288ad7da29fa (patch)
tree3bdb33ed9eef9101f1d6d6972ac9411051b988ce /include/feedutils.php
parent4e85bc66b8a5f5347ae15dda229f028d31b58469 (diff)
downloadvolse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.tar.gz
volse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.tar.bz2
volse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.zip
null_date conversion; phase 1
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 01ec0687e..1d58ec317 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -33,7 +33,7 @@ function get_public_feed($channel, $params) {
// put a sane lower limit on feed requests if not specified
-// if($params['begin'] === NULL_DATE)
+// if($params['begin'] <= NULL_DATE)
// $params['begin'] = datetime_convert('UTC','UTC','now - 1 month');
switch($params['type']) {
@@ -884,7 +884,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) {
$datarray['owner_xchan'] = $contact['xchan_hash'];
- if(array_key_exists('created',$datarray) && $datarray['created'] != NULL_DATE && $expire_days) {
+ if(array_key_exists('created',$datarray) && $datarray['created'] > NULL_DATE && $expire_days) {
$t1 = $datarray['created'];
$t2 = datetime_convert('UTC','UTC','now - ' . $expire_days . 'days');
if($t1 < $t2) {