Different check for being local
authorMichael <heluecht@pirati.ca>
Wed, 19 Aug 2020 12:47:14 +0000 (12:47 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 19 Aug 2020 12:47:14 +0000 (12:47 +0000)
src/Worker/OnePoll.php

index 867b11f..7d69517 100644 (file)
@@ -104,7 +104,7 @@ class OnePoll
                }
 
                // Don't poll local contacts
-               if (Contact::isLocalById($contact['id'])) {
+               if (User::getIdForURL($contact['url'])) {
                        Logger::info('Local contacts are not polled', ['id' => $contact['id']]);
 
                        // set the last-update so we don't keep polling