diff options
author | Andy Xheli <axheli@axtsolutions.com> | 2022-05-27 14:48:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 14:48:06 -0500 |
commit | c19c05999422eb380f1eb4401f394d138156211d (patch) | |
tree | e4e89be9ed709efe9c5ed8e7280f3515d522a512 /lib/private/Contacts/ContactsMenu/ContactsStore.php | |
parent | ec96aa527b3ef2c32d460740093c777ee7695248 (diff) | |
download | nextcloud-server-c19c05999422eb380f1eb4401f394d138156211d.tar.gz nextcloud-server-c19c05999422eb380f1eb4401f394d138156211d.zip |
Fix User profile picture when performing the search
Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
Before
![image](https://user-images.githubusercontent.com/59488153/140980158-b9108161-57ab-48b4-ae6f-98ec4e72775a.png)
After
Fix for #31065
Diffstat (limited to 'lib/private/Contacts/ContactsMenu/ContactsStore.php')
-rw-r--r-- | lib/private/Contacts/ContactsMenu/ContactsStore.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 020e8604910..2edb04df926 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -284,8 +284,11 @@ class ContactsStore implements IContactsStore { private function contactArrayToEntry(array $contact): Entry { $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'])) { |