From 731e0a0530f109bf33196801d1ce085fc18db556 Mon Sep 17 00:00:00 2001 From: Andy Xheli Date: Fri, 27 May 2022 14:48:06 -0500 Subject: Fix User profile picture when performing the search Signed-off-by: Andy Xheli Before ![image](https://user-images.githubusercontent.com/59488153/140980158-b9108161-57ab-48b4-ae6f-98ec4e72775a.png) After Fix for #31065 --- lib/private/Contacts/ContactsMenu/ContactsStore.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 0ac388ce00a..9f04a20a344 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -312,8 +312,11 @@ class ContactsStore implements IContactsStore { private function contactArrayToEntry(array $contact) { $entry = new Entry(); - if (isset($contact['id'])) { - $entry->setId($contact['id']); + if (isset($contact['UID'])) { + $entry->setId($contact['UID']); + $uid = $contact['UID']; + $avatar = "/index.php/avatar/$uid/64"; + $entry->setAvatar($avatar); } if (isset($contact['FN'])) { -- cgit v1.2.3