]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Search.php
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
[friendica.git] / src / Core / Search.php
index 32090733c4d692e4d9e07156bcb069ca5ecf5827..26531a1a3089b11b955bc07ed1187568d4160d00 100644 (file)
@@ -77,7 +77,7 @@ class Search
                        // Ensure that we do have a contact entry
                        Contact::getIdForURL($user_data['url'] ?? '');
 
-                       $contactDetails = Contact::getDetailsByURL($user_data['url'] ?? '', local_user());
+                       $contactDetails = Contact::getByURLForUser($user_data['url'] ?? '', local_user(), [], false);
 
                        $result = new ContactResult(
                                $user_data['name'] ?? '',
@@ -100,7 +100,7 @@ class Search
        /**
         * Search in the global directory for occurrences of the search string
         *
-        * @see https://github.com/friendica/friendica-directory/blob/master/docs/Protocol.md#search
+        * @see https://github.com/friendica/friendica-directory/blob/stable/docs/Protocol.md#search
         *
         * @param string $search
         * @param int    $type specific type of searching
@@ -143,7 +143,7 @@ class Search
 
                foreach ($profiles as $profile) {
                        $profile_url = $profile['url'] ?? '';
-                       $contactDetails = Contact::getDetailsByURL($profile_url, local_user());
+                       $contactDetails = Contact::getByURLForUser($profile_url, local_user(), [], false);
 
                        $result = new ContactResult(
                                $profile['name'] ?? '',
@@ -232,7 +232,7 @@ class Search
                                continue;
                        }
 
-                       $contact = Contact::getDetailsByURL($row["nurl"], local_user());
+                       $contact = Contact::getByURLForUser($row["nurl"], local_user(), [], false);
 
                        if ($contact["name"] == "") {
                                $contact["name"] = end(explode("/", $urlParts["path"]));