aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorAndy Xheli <axheli@axtsolutions.com>2022-05-27 14:48:06 -0500
committerGitHub <noreply@github.com>2022-05-27 14:48:06 -0500
commitc19c05999422eb380f1eb4401f394d138156211d (patch)
treee4e89be9ed709efe9c5ed8e7280f3515d522a512 /lib/private
parentec96aa527b3ef2c32d460740093c777ee7695248 (diff)
downloadnextcloud-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')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php7
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'])) {