mirror of
https://github.com/friendica/friendica
synced 2025-05-07 11:04:10 +02:00
Merge pull request #9032 from annando/local-access
Some more local network access are removed
This commit is contained in:
commit
17dbffe824
5 changed files with 45 additions and 13 deletions
|
@ -103,6 +103,15 @@ class OnePoll
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't poll local contacts
|
||||
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
|
||||
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