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
diff options
context:
space:
mode:
authorAndy Xheli <axheli@axtsolutions.com>2022-05-27 22:48:06 +0300
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-10-27 13:04:06 +0300
commit731e0a0530f109bf33196801d1ce085fc18db556 (patch)
tree4011218e652443ad0679239c7c7267ee0fc81620
parentc502729d56fa474692c8354af148a5d275af9b8e (diff)
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
-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..9f04a20a344 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'])) {
+ $entry->setId($contact['UID']);
+ $uid = $contact['UID'];
+ $avatar = "/index.php/avatar/$uid/64";
+ $entry->setAvatar($avatar);
}
if (isset($contact['FN'])) {