X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContact.php;h=790badc9d2d3e2510f49416c4e568c22ed4a075f;hb=80da47921e2faa528bd16e587fe23ec340c847d6;hp=f23c5c0a070ff0aa4b40345027414d77d113ce49;hpb=80f4214d91a5c2b1e263a7b9d56415cbcf8157ae;p=friendica.git diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index f23c5c0a07..790badc9d2 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,24 +1,39 @@ . + * */ 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 = '') + /** + * Update contact data via probe + * @param int $contact_id Contact ID + */ + public static function execute($contact_id) { - $force = ($command == "force"); - - $success = Contact::updateFromProbe($contact_id, '', $force); + $success = Contact::updateFromProbe($contact_id); - Logger::info('Updated from probe', ['id' => $contact_id, 'force' => $force, 'success' => $success]); + Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]); } }