mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Fix User profile picture when performing the search
Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Before  After Fix for #31065
This commit is contained in:
parent
c765dac633
commit
511ade9497
1 changed files with 5 additions and 2 deletions
|
|
@ -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'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue