]> git.mxchange.org Git - friendica.git/blob - src/Worker/UpdateGContact.php
Now using only a single array
[friendica.git] / src / Worker / UpdateGContact.php
1 <?php
2
3 /**
4  * @file src/Worker/UpdateGcontact.php
5  */
6
7 namespace Friendica\Worker;
8
9 use Friendica\Core\Logger;
10 use Friendica\Model\GContact;
11 use Friendica\Database\DBA;
12
13 class UpdateGContact
14 {
15         /**
16          * Update global contact via probe
17          * @param string $url     Global contact url
18          * @param string $command
19          */
20         public static function execute($url, $command = '')
21         {
22                 $force = ($command == "force");
23
24                 $success = GContact::updateFromProbe($url, $force);
25
26                 Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
27         }
28 }