aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorAndy Xheli <axheli@axtsolutions.com>2022-09-16 11:29:09 -0500
committerVincent Petry (Rebase PR Action) <PVince81@users.noreply.github.com>2022-10-27 10:04:06 +0000
commit98e9414c70784d37fccb2b7c06a9dd2a59af6b12 (patch)
treecae2596b44beca8a514f3cd5327c47ebe840403e /lib/private
parent731e0a0530f109bf33196801d1ce085fc18db556 (diff)
downloadnextcloud-server-98e9414c70784d37fccb2b7c06a9dd2a59af6b12.tar.gz
nextcloud-server-98e9414c70784d37fccb2b7c06a9dd2a59af6b12.zip
Apply suggestions from code review
Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Contacts/ContactsMenu/ContactsStore.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Contacts/ContactsMenu/ContactsStore.php b/lib/private/Contacts/ContactsMenu/ContactsStore.php
index 9f04a20a344..19f6e9ae3c9 100644
--- a/lib/private/Contacts/ContactsMenu/ContactsStore.php
+++ b/lib/private/Contacts/ContactsMenu/ContactsStore.php
@@ -315,7 +315,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);
}