Merge pull request #8883 from annando/replace-getdetails

Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
This commit is contained in:
Hypolite Petovan 2020-07-15 13:49:27 -04:00 committed by GitHub
commit 631095eefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 84 additions and 291 deletions

View 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());
$result = new ContactResult(
$user_data['name'] ?? '',
@ -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());
$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());
if ($contact["name"] == "") {
$contact["name"] = end(explode("/", $urlParts["path"]));