]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateContact.php
Ensure author-link key has a value in Worker\Notifier
[friendica.git] / src / Worker / UpdateContact.php
index 342e99550de2085477da8056283679edc189fb2f..74fbe2c22a12bc53ca193704a7d74f371becd5a8 100644 (file)
@@ -23,22 +23,17 @@ 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);
 
-               $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]);
        }
 }