use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\Profile;
+use Friendica\Module\Contact as ModuleContact;
/**
* Controller for /match.
$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::getByURL($profile->url);
+ $contact = Contact::getByURLForUser($profile->url, local_user());
if (!empty($contact)) {
- $entries[] = Contact::getTemplateData($contact, $i);
+ $entries[] = ModuleContact::getContactTemplateVars($contact);
}
}