diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-10-27 14:26:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 14:26:27 +0200 |
commit | 04ec0d7f9717f80862f436a7b882eaf79322c3db (patch) | |
tree | cb7b4715f26725785fd749ce5926bf5fc479f3f6 /lib | |
parent | 7710ea24bfe29c9ffab4bd8336d1493c3e7b5926 (diff) | |
parent | 7cdc579026ebe08127d1413f79fdaaafea95b7d6 (diff) | |
download | nextcloud-server-04ec0d7f9717f80862f436a7b882eaf79322c3db.tar.gz nextcloud-server-04ec0d7f9717f80862f436a7b882eaf79322c3db.zip |
Merge pull request #34440 from nextcloud/backport/32635/stable24
Diffstat (limited to 'lib')
-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 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'])) { |