X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContact.php;h=8de3629cafdca24ce8b0d04c60024dd46ff0b09b;hb=9fbdcb5459e4acb158961427837612999253e046;hp=f23c5c0a070ff0aa4b40345027414d77d113ce49;hpb=9bf065c9d8343ff2d2b6b5a7514a78471a0bedd4;p=friendica.git diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index f23c5c0a07..8de3629caf 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,24 +1,41 @@ . + * */ 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 + * @return void + */ + public static function execute(int $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]); } }