<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
/**
* 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]);
}
}