From c87150819bdd4ceb0bab42ff01226c640eddea1c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Wed, 21 Sep 2022 22:47:09 +0200 Subject: [PATCH] Worker for updating fcontact entries --- src/Worker/UpdateFContact.php | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/Worker/UpdateFContact.php 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]); + } +}