Use the correct ids for the search results

This commit is contained in:
Michael 2023-03-28 10:06:41 +00:00
parent 74222532dc
commit e6ce165bb5

View file

@ -79,7 +79,7 @@ class Search
$user_data['url'] ?? '', $user_data['url'] ?? '',
$user_data['photo'] ?? '', $user_data['photo'] ?? '',
$user_data['network'] ?? '', $user_data['network'] ?? '',
$contactDetails['id'] ?? 0, $contactDetails['cid'] ?? 0,
$user_data['id'] ?? 0, $user_data['id'] ?? 0,
$user_data['tags'] ?? '' $user_data['tags'] ?? ''
); );
@ -146,7 +146,7 @@ class Search
$profile['photo'] ?? '', $profile['photo'] ?? '',
Protocol::DFRN, Protocol::DFRN,
$contactDetails['cid'] ?? 0, $contactDetails['cid'] ?? 0,
0, $contactDetails['zid'] ?? 0,
$profile['tags'] ?? '' $profile['tags'] ?? ''
); );
@ -179,12 +179,12 @@ class Search
$result = new ContactResult( $result = new ContactResult(
$contact['name'], $contact['name'],
$contact['addr'], $contact['addr'],
$contact['addr'], $contact['addr'] ?: $contact['url'],
$contact['url'], $contact['url'],
$contact['photo'], $contact['photo'],
$contact['network'], $contact['network'],
$contact['cid'] ?? 0, 0,
$contact['zid'] ?? 0, $contact['pid'],
$contact['keywords'] $contact['keywords']
); );