X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContact.php;h=8de3629cafdca24ce8b0d04c60024dd46ff0b09b;hb=2baa56d4787ebdb4a3b8f2a0b9e35d083333c922;hp=0e5fd141281ec182a111c3f2d48befbe6ac7ecf4;hpb=94954c810b3ee0f885029f9818b217e0817ad70b;p=friendica.git diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index 0e5fd14128..8de3629caf 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,29 +1,41 @@ . + * */ namespace Friendica\Worker; use Friendica\Core\Logger; use Friendica\Model\Contact; -use Friendica\Util\DateTimeFormat; -use Friendica\Database\DBA; class UpdateContact { /** * Update contact data via probe + * * @param int $contact_id Contact ID - * @param string $command + * @return void */ - public static function execute($contact_id, $command = '') + 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]); } }