]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Merge pull request #8964 from annando/contact-tabs
[friendica.git] / mod / match.php
index 75728b7043e9f28f49b4af769f15da31e7266da8..8e0baacd1ee765e363abe45f93258cda295a87ec 100644 (file)
@@ -27,6 +27,7 @@ use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Module\Contact as ModuleContact;
 
 /**
  * Controller for /match.
@@ -91,9 +92,9 @@ function match_content(App $a)
                                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);
                        }
                }