X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FUpdateContact.php;h=edabaf163c897fc890c9dc6603049162161faa52;hb=34030a736d5e0aa2195c0f472cf69f863c161d83;hp=0e5fd141281ec182a111c3f2d48befbe6ac7ecf4;hpb=94954c810b3ee0f885029f9818b217e0817ad70b;p=friendica.git diff --git a/src/Worker/UpdateContact.php b/src/Worker/UpdateContact.php index 0e5fd14128..edabaf163c 100644 --- a/src/Worker/UpdateContact.php +++ b/src/Worker/UpdateContact.php @@ -1,29 +1,39 @@ . + * */ 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 */ - public static function execute($contact_id, $command = '') + 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]); } }