]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContact.php
Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated...
[friendica.git] / src / Worker / UpdateContact.php
index 67bc45ef982d229798a70bc572b57bfba33863c9..790badc9d2d3e2510f49416c4e568c22ed4a075f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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]);
        }
 }