<?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);
}
}