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>
This commit is contained in:
Andy Xheli 2022-09-16 11:29:09 -05:00 committed by backportbot-nextcloud[bot]
parent 511ade9497
commit 31e5e102c1

View file

@ -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);
}