aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts
diff options
context:
space:
mode:
authorAndy Xheli <axheli@axtsolutions.com>2022-09-16 11:29:09 -0500
committerGitHub <noreply@github.com>2022-09-16 11:29:09 -0500
commitc2c2e3ce52c1689bcf5d99c3b945a4715f952b95 (patch)
treed670fed4b0113fb10fe181d3f80c5b3bc377c355 /lib/private/Contacts
parentc19c05999422eb380f1eb4401f394d138156211d (diff)
downloadnextcloud-server-c2c2e3ce52c1689bcf5d99c3b945a4715f952b95.tar.gz
nextcloud-server-c2c2e3ce52c1689bcf5d99c3b945a4715f952b95.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/Contacts')
-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 2edb04df926..aac213f6aa4 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);
}