mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Query the same contact only once a month
This commit is contained in:
parent
9adf09be51
commit
d6905e29cf
5 changed files with 49 additions and 10 deletions
|
@ -29,10 +29,12 @@ class UpdateGContact
|
|||
{
|
||||
/**
|
||||
* Update global contact via probe
|
||||
* @param string $url Global contact url
|
||||
* @param string $command
|
||||
* @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($url, $command = '')
|
||||
public static function execute(string $url, string $command = '', int $following_gcid = 0, int $follower_gcid = 0)
|
||||
{
|
||||
$force = ($command == "force");
|
||||
|
||||
|
@ -41,7 +43,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);
|
||||
GContact::discoverFollowers($url, $following_gcid, $follower_gcid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue