Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-10-27 15:26:27 +0300
committerGitHub <noreply@github.com>2022-10-27 15:26:27 +0300
commit04ec0d7f9717f80862f436a7b882eaf79322c3db (patch)
treecb7b4715f26725785fd749ce5926bf5fc479f3f6 /lib
parent7710ea24bfe29c9ffab4bd8336d1493c3e7b5926 (diff)
parent7cdc579026ebe08127d1413f79fdaaafea95b7d6 (diff)
Merge pull request #34440 from nextcloud/backport/32635/stable24
Diffstat (limited to 'lib')
-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 0ac388ce00a..4a8e699ae0e 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'])) {
+ $uid = $contact['UID'];
+ $entry->setId($uid);
+ $avatar = $this->urlGenerator->linkToRouteAbsolute('core.avatar.getAvatar', ['userId' => $uid, 'size' => 64]);
+ $entry->setAvatar($avatar);
}
if (isset($contact['FN'])) {