friendica_2021-01/src/Worker/UpdateGContact.php

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