mirror of
https://github.com/friendica/friendica
synced 2024-12-25 16:00:16 +00:00
24 lines
496 B
PHP
24 lines
496 B
PHP
<?php
|
|
|
|
/**
|
|
* @file src/Worker/UpdateContact.php
|
|
*/
|
|
|
|
namespace Friendica\Worker;
|
|
|
|
use Friendica\Core\Logger;
|
|
use Friendica\Model\Contact;
|
|
use Friendica\Util\DateTimeFormat;
|
|
use Friendica\Database\DBA;
|
|
|
|
class UpdateContact
|
|
{
|
|
public static function execute($contact_id, $command = '')
|
|
{
|
|
$force = ($command == "force");
|
|
|
|
$success = Contact::updateFromProbe($contact_id, '', $force);
|
|
|
|
Logger::info('Updated from probe', ['id' => $contact_id, 'force' => $force, 'success' => $success]);
|
|
}
|
|
}
|