if ($is_reshare) {
$reshare = $this->createFromUriId($uriId, $uid, false)->toArray();
}
-// $mentions = array_unique($mentions);
+
return new \Friendica\Object\Api\Mastodon\Status($item, $account, $counts, $userAttributes, $sensitive, $application, $mentions, $tags, $card, $attachments, $reshare, $poll);
}
* @param integer $uid
* @return void
*/
- static public function updateSuggestions(int $uid)
+ static public function updateCachedSuggestions(int $uid)
{
if (DI::pConfig()->get($uid, 'suggestion', 'last_update') + 3600 > time()) {
return;
{
$users = DBA::select('user', ['uid'], ["`login_date` > ?", DateTimeFormat::utc('now - 7 days')]);
while ($user = DBA::fetch($users)) {
- Contact\Relation::updateSuggestions($user['uid']);
+ Contact\Relation::updateCachedSuggestions($user['uid']);
}
DBA::close($users);
}
{
public static function execute(int $uid)
{
- Contact\Relation::updateSuggestions($uid);
+ Contact\Relation::updateCachedSuggestions($uid);
}
}