From 31e5e102c1b97bd285dc6930cd575e337741fc6d Mon Sep 17 00:00:00 2001 From: Andy Xheli Date: Fri, 16 Sep 2022 11:29:09 -0500 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Andy Xheli Co-authored-by: Carl Schwan Signed-off-by: Andy Xheli --- lib/private/Contacts/ContactsMenu/ContactsStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php index 2c84aa9dc9c..a9e0439f1fb 100644 --- a/lib/private/Contacts/ContactsMenu/ContactsStore.php +++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php @@ -287,7 +287,7 @@ class ContactsStore implements IContactsStore { if (isset($contact['UID'])) { $entry->setId($contact['UID']); $uid = $contact['UID']; - $avatar = "/index.php/avatar/$uid/64"; + $avatar = $this->urlGenerator->linkToRoute('core.getAvatar', ['userId' => $uid, 'size' => 64]); $entry->setAvatar($avatar); }