mirror of
https://github.com/friendica/friendica
synced 2025-04-26 22:30:18 +00:00
Prevent putting much stress on remote systems
This commit is contained in:
parent
11f38ee303
commit
4aa89368ad
2 changed files with 4 additions and 3 deletions
|
@ -1359,7 +1359,7 @@ class GContact
|
|||
|
||||
if (!Network::isUrlBlocked($contact)) {
|
||||
Logger::info('Discover new AP contact', ['url' => $contact]);
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGContact', $contact);
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGContact', $contact, 'nodiscover');
|
||||
} else {
|
||||
Logger::info('No discovery, the URL is blocked.', ['url' => $contact]);
|
||||
}
|
||||
|
@ -1399,7 +1399,7 @@ class GContact
|
|||
}
|
||||
if (!Network::isUrlBlocked($entry['value'])) {
|
||||
Logger::info('Discover new PoCo contact', ['url' => $entry['value']]);
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGContact', $entry['value']);
|
||||
Worker::add(PRIORITY_LOW, 'UpdateGContact', $entry['value'], 'nodiscover');
|
||||
} else {
|
||||
Logger::info('No discovery, the URL is blocked.', ['url' => $entry['value']]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue