friendica/src/Worker/UpdateGContact.php

29 lines
560 B
PHP
Raw Normal View History

<?php
/**
2017-11-15 16:12:33 -05:00
* @file src/Worker/UpdateGcontact.php
*/
2017-11-18 02:33:44 -05:00
namespace Friendica\Worker;
2018-10-29 17:20:46 -04:00
use Friendica\Core\Logger;
use Friendica\Model\GContact;
use Friendica\Database\DBA;
class UpdateGContact
{
2019-12-21 15:18:44 -05:00
/**
* Update global contact via probe
* @param string $url Global contact url
* @param string $command
*/
public static function execute($url, $command = '')
{
$force = ($command == "force");
$success = GContact::updateFromProbe($url, $force);
Logger::info('Updated from probe', ['url' => $url, 'force' => $force, 'success' => $success]);
2017-11-15 16:12:33 -05:00
}
}