<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
$profile = $msearch->results[$i];
// Already known contact
- if (!$profile || Contact::getIdForURL($profile->url, local_user(), false)) {
+ if (!$profile || Contact::getIdForURL($profile->url, local_user())) {
continue;
}
$contact = Contact::getByURLForUser($profile->url, local_user());
if (!empty($contact)) {
- $entries[] = ModuleContact::getContactTemplateVars($contact, $i);
+ $entries[] = ModuleContact::getContactTemplateVars($contact);
}
}