Don't poll locally / user self data

This commit is contained in:
Michael 2020-08-19 05:18:19 +00:00
parent eb95314aaa
commit 3d1829ede5
2 changed files with 17 additions and 0 deletions

View file

@ -103,6 +103,15 @@ class OnePoll
return;
}
// Don't poll local contacts
if (Contact::isLocalById($contact['id'])) {
Logger::info('Local contacts are not polled', ['id' => $contact['id']]);
// set the last-update so we don't keep polling
DBA::update('contact', ['last-update' => $updated], ['id' => $contact['id']]);
return;
}
// We don't poll AP contacts by now
if ($protocol === Protocol::ACTIVITYPUB) {
Logger::log("Don't poll AP contact");