X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FBaseSearch.php;h=3abc92318262d8754d8655b36af61dac01e8208e;hb=6dbbd081795fa1c8fe57db2248ac162efeeada88;hp=594f5620554e66e44ae67ebcb733a55cc205fce4;hpb=91b0f2c486840035d021d53fc5cdc1c5932283ca;p=friendica.git diff --git a/src/Module/BaseSearch.php b/src/Module/BaseSearch.php index 594f562055..3abc923182 100644 --- a/src/Module/BaseSearch.php +++ b/src/Module/BaseSearch.php @@ -1,6 +1,6 @@ getResults() as $result) { // in case the result is a contact result, add a contact-specific entry if ($result instanceof ContactResult) { - $contact = Model\Contact::getByURL($result->getUrl()); + $contact = Model\Contact::getByURLForUser($result->getUrl(), local_user()); if (!empty($contact)) { - $entries[] = Model\Contact::getTemplateData($contact, ++$id); + $entries[] = Contact::getContactTemplateVars($contact); } } }