mirror of
https://github.com/friendica/friendica
synced 2025-05-03 23:44:10 +02:00
Performance changes to the gcontact discovery
This commit is contained in:
parent
ea1bdcc710
commit
03e8609e4e
2 changed files with 15 additions and 28 deletions
|
@ -29,12 +29,10 @@ class UpdateGContact
|
|||
{
|
||||
/**
|
||||
* Update global contact via probe
|
||||
* @param string $url Global contact url
|
||||
* @param string $url Global contact url
|
||||
* @param string $command
|
||||
* @param integer $following_gcid gcontact ID of the contact that is followed by this one
|
||||
* @param integer $follower_gcid gcontact ID of the contact that is following this one
|
||||
*/
|
||||
public static function execute(string $url, string $command = '', int $following_gcid = 0, int $follower_gcid = 0)
|
||||
public static function execute(string $url, string $command = '')
|
||||
{
|
||||
$force = ($command == "force");
|
||||
|
||||
|
@ -43,7 +41,7 @@ class UpdateGContact
|
|||
Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
|
||||
|
||||
if ($success && DI::config()->get('system', 'gcontact_discovery')) {
|
||||
GContact::discoverFollowers($url, $following_gcid, $follower_gcid);
|
||||
GContact::discoverFollowers($url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue