friendica/src/Worker/UpdateGContact.php

24 lines
441 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
{
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
}
}