]> git.mxchange.org Git - friendica.git/blob - src/Worker/UpdateGContact.php
wrapping up 2019.12
[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         public static function execute($url, $command = '')
16         {
17                 $force = ($command == "force");
18
19                 $success = GContact::updateFromProbe($url, $force);
20
21                 Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
22         }
23 }