1
1
Fork 0
friendica_2019-12_sharedHos.../src/Worker/UpdateGContact.php

23 lines
441 B
PHP

<?php
/**
* @file src/Worker/UpdateGcontact.php
*/
namespace Friendica\Worker;
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]);
}
}