From: Michael Date: Tue, 28 Mar 2023 10:06:41 +0000 (+0000) Subject: Use the correct ids for the search results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6ce165bb54b81fde632b86e3baf385466c87bd9;p=friendica.git Use the correct ids for the search results --- diff --git a/src/Core/Search.php b/src/Core/Search.php index 3c0ace3db5..b641f2897f 100644 --- a/src/Core/Search.php +++ b/src/Core/Search.php @@ -79,7 +79,7 @@ class Search $user_data['url'] ?? '', $user_data['photo'] ?? '', $user_data['network'] ?? '', - $contactDetails['id'] ?? 0, + $contactDetails['cid'] ?? 0, $user_data['id'] ?? 0, $user_data['tags'] ?? '' ); @@ -146,7 +146,7 @@ class Search $profile['photo'] ?? '', Protocol::DFRN, $contactDetails['cid'] ?? 0, - 0, + $contactDetails['zid'] ?? 0, $profile['tags'] ?? '' ); @@ -179,12 +179,12 @@ class Search $result = new ContactResult( $contact['name'], $contact['addr'], - $contact['addr'], + $contact['addr'] ?: $contact['url'], $contact['url'], $contact['photo'], $contact['network'], - $contact['cid'] ?? 0, - $contact['zid'] ?? 0, + 0, + $contact['pid'], $contact['keywords'] );