mirror of
https://github.com/friendica/friendica
synced 2025-04-26 08:30:10 +00:00
Don't poll locally / user self data
This commit is contained in:
parent
eb95314aaa
commit
3d1829ede5
2 changed files with 17 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue