4 * @file src/Worker/UpdateGcontact.php
7 namespace Friendica\Worker;
9 use Friendica\Core\Logger;
10 use Friendica\Model\GContact;
11 use Friendica\Database\DBA;
16 * Update global contact via probe
17 * @param string $url Global contact url
18 * @param string $command
20 public static function execute($url, $command = '')
22 $force = ($command == "force");
24 $success = GContact::updateFromProbe($url, $force);
26 Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);