mirror of
https://github.com/friendica/friendica
synced 2025-05-03 23:44:10 +02:00
Reduce the load of "gfollower"
This commit is contained in:
parent
2b5ef80912
commit
f27900ad78
9 changed files with 50 additions and 10 deletions
|
@ -23,8 +23,6 @@ namespace Friendica\Worker;
|
|||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
use Friendica\Database\DBA;
|
||||
|
||||
class UpdateContact
|
||||
{
|
||||
|
|
|
@ -40,7 +40,7 @@ class UpdateGContact
|
|||
|
||||
Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
|
||||
|
||||
if ($success && DI::config()->get('system', 'gcontact_discovery')) {
|
||||
if ($success && (DI::config()->get('system', 'gcontact_discovery') == GContact::DISCOVERY_RECURSIVE)) {
|
||||
GContact::discoverFollowers($url);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue