mirror of
https://github.com/friendica/friendica
synced 2025-05-03 23:44:10 +02:00
GContact discovery added
This commit is contained in:
parent
bf35ff27d3
commit
a6e7b5f295
7 changed files with 83 additions and 4 deletions
|
@ -22,8 +22,8 @@
|
|||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Database\DBA;
|
||||
|
||||
class UpdateGContact
|
||||
{
|
||||
|
@ -39,5 +39,9 @@ class UpdateGContact
|
|||
$success = GContact::updateFromProbe($url, $force);
|
||||
|
||||
Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
|
||||
|
||||
if ($success && DI::config()->get('system', 'gcontact_discovery')) {
|
||||
GContact::discoverFollowers($url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue