aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-10-05 10:36:43 +0200
committerGitHub <noreply@github.com>2022-10-05 10:36:43 +0200
commit7d024bc337d9c9b43b80ed856c76c30e3f8edf97 (patch)
tree43b9f84194c0234fe5c1172c2ba01e0399ee8296 /lib/private
parenta178d6982d1e91ad10e066176da5b47f92c2fb90 (diff)
parentae6a7c88a004843e0dc976a4a616ffaceea4ee1a (diff)
downloadnextcloud-server-7d024bc337d9c9b43b80ed856c76c30e3f8edf97.tar.gz
nextcloud-server-7d024bc337d9c9b43b80ed856c76c30e3f8edf97.zip
Merge pull request #32635 from andyxheli/patch-3
Fix User profile picture when performing the search
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 dd4bd973fa9..a0a14cd9cbd 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'])) {
+ $uid = $contact['UID'];
+ $entry->setId($uid);
+ $avatar = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $uid, 'size' => 64]);
+ $entry->setAvatar($avatar);
}
if (isset($contact['FN'])) {