]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContact.php
Merge pull request #9327 from nupplaphil/task/security_restructure
[friendica.git] / src / Worker / UpdateContact.php
index 67bc45ef982d229798a70bc572b57bfba33863c9..74fbe2c22a12bc53ca193704a7d74f371becd5a8 100644 (file)
@@ -29,14 +29,11 @@ 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);
 
-               $success = Contact::updateFromProbe($contact_id, '', $force);
-
-               Logger::info('Updated from probe', ['id' => $contact_id, 'force' => $force, 'success' => $success]);
+               Logger::info('Updated from probe', ['id' => $contact_id, 'success' => $success]);
        }
 }