]> git.mxchange.org Git - friendica.git/blobdiff - include/onepoll.php
Fix ostatus bug related to only_full_group_by
[friendica.git] / include / onepoll.php
index 30a21129d4f6bd5b7c5188fd87aa5216efff9f17..5227b61a1ab118a3066247d631b7b8677776c584 100644 (file)
@@ -2,7 +2,7 @@
 
 use \Friendica\Core\Config;
 
-require_once("include/follow.php");
+require_once('include/follow.php');
 
 function RemoveReply($subject) {
        while (in_array(strtolower(substr($subject, 0, 3)), array("re:", "aw:")))
@@ -133,7 +133,7 @@ function onepoll_run(&$argv, &$argc){
 
        logger("onepoll: poll: ({$contact['id']}) IMPORTER: {$importer['name']}, CONTACT: {$contact['name']}");
 
-       $last_update = (($contact['last-update'] === '0000-00-00 00:00:00')
+       $last_update = (($contact['last-update'] <= NULL_DATE)
                ? datetime_convert('UTC','UTC','now - 7 days', ATOM_TIME)
                : datetime_convert('UTC','UTC',$contact['last-update'], ATOM_TIME)
        );
@@ -239,7 +239,7 @@ function onepoll_run(&$argv, &$argc){
                                intval($contact['id'])
                        );
                        mark_for_death($contact);
-               } elseif ($contact['term-date'] != '0000-00-00 00:00:00') {
+               } elseif ($contact['term-date'] > NULL_DATE) {
                        logger("poller: $url back from the dead - removing mark for death");
                        unmark_for_death($contact);
                }