Merge pull request #38481 from nextcloud/bugfix/noid/avatar-size-in-sab

fix(dav): Fix avatar size in system address book
This commit is contained in:
Joas Schilling 2023-05-26 11:04:14 +02:00 committed by GitHub
commit 37f387b239
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ class Converter {
private function getAvatarImage(IUser $user): ?IImage {
try {
return $user->getAvatarImage(-1);
return $user->getAvatarImage(512);
} catch (Exception $ex) {
return null;
}

View file

@ -571,7 +571,7 @@ class User implements IUser {
}
$avatar = $this->avatarManager->getAvatar($this->uid);
$image = $avatar->get(-1);
$image = $avatar->get($size);
if ($image) {
return $image;
}