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
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'])) {