]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateSuggestions.php
Ward againt contact_id = 0 in UpdateContact worker
[friendica.git] / src / Worker / UpdateSuggestions.php
index 103a3cf4cafc4e73a8d2f68885da740c8887fd13..509fee05a923c7328353b30da31674fa7aa94a75 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
 
 namespace Friendica\Worker;
 
-use Friendica\Core\Logger;
-use Friendica\Model\GContact;
+use Friendica\Model\Contact;
 
+/**
+ * Update contact suggestions
+ */
 class UpdateSuggestions
 {
-       /**
-        * Discover other servers for their contacts.
-        */
-       public static function execute()
+       public static function execute(int $uid)
        {
-               GContact::updateSuggestions();
+               Contact\Relation::updateCachedSuggestions($uid);
        }
 }