friendica/src/Worker/UpdateGContact.php

29 lines
560 B
PHP
Raw Normal View History

<?php
/**
2017-11-15 22:12:33 +01:00
* @file src/Worker/UpdateGcontact.php
*/
2017-11-18 08:33:44 +01:00
namespace Friendica\Worker;
2018-10-29 22:20:46 +01:00
use Friendica\Core\Logger;
use Friendica\Model\GContact;
use Friendica\Database\DBA;
class UpdateGContact
{
2019-12-21 21:18:44 +01: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 22:12:33 +01:00
}
}