From: Michael Vogel Date: Wed, 21 Sep 2022 20:47:09 +0000 (+0200) Subject: Worker for updating fcontact entries X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c87150819bdd4ceb0bab42ff01226c640eddea1c;p=friendica.git Worker for updating fcontact entries --- diff --git a/src/Worker/UpdateFContact.php b/src/Worker/UpdateFContact.php new file mode 100644 index 0000000000..260e071715 --- /dev/null +++ b/src/Worker/UpdateFContact.php @@ -0,0 +1,41 @@ +. + * + */ + +namespace Friendica\Worker; + +use Friendica\Core\Logger; +use Friendica\Model\FContact; + +class UpdateFContact +{ + /** + * Update fcontact data via probe + * + * @param string $handle Contact handle + * @return void + */ + public static function execute(string $handle) + { + $success = FContact::getByURL($handle, true); + + Logger::info('Updated from probe', ['handle' => $handle, 'success' => $success]); + } +}