]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/OnePoll.php
OnePoll: We now force an update check all the time
[friendica.git] / src / Worker / OnePoll.php
index 9024d0d4c9008be47ec9eae5071efe9046febe2a..9cb33c471b0c68cacf4d8ae3d150dfff258161e7 100644 (file)
@@ -12,6 +12,7 @@ use Friendica\Protocol\Email;
 use Friendica\Protocol\PortableContact;
 use dba;
 
+require_once 'include/dba.php';
 require_once 'include/follow.php';
 
 Class OnePoll
@@ -65,7 +66,7 @@ Class OnePoll
 
                // Diaspora users, archived users and followers are only checked if they still exist.
                if ($contact['archive'] || ($contact["network"] == NETWORK_DIASPORA) || ($contact["rel"] == CONTACT_IS_FOLLOWER)) {
-                       $last_updated = PortableContact::lastUpdated($contact["url"]);
+                       $last_updated = PortableContact::lastUpdated($contact["url"], true);
                        $updated = datetime_convert();
                        if ($last_updated) {
                                logger('Contact '.$contact['id'].' had last update on '.$last_updated, LOGGER_DEBUG);
@@ -630,6 +631,7 @@ Class OnePoll
                        dba::update('gcontact', array('last_failure' => $updated), array('nurl' => $contact['nurl']));
                        Contact::markForArchival($contact);
                } else {
+                       $updated = datetime_convert();
                        dba::update('contact', array('last-update' => $updated), array('id' => $contact['id']));
                }