diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-26 10:03:58 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-05-26 10:28:59 +0000 |
commit | bbb9437116d0ec0ee74db10ac1516c15bf3ae9ad (patch) | |
tree | 5bb98ee35e8f087ce0b35e899f4a19bdacab0ea3 | |
parent | 3ad800721808df896d14688755e3a6daa9add077 (diff) | |
download | nextcloud-server-bbb9437116d0ec0ee74db10ac1516c15bf3ae9ad.tar.gz nextcloud-server-bbb9437116d0ec0ee74db10ac1516c15bf3ae9ad.zip |
fix(dav): Fix avatar size in system address book
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/dav/lib/CardDAV/Converter.php | 2 | ||||
-rw-r--r-- | lib/private/User/User.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CardDAV/Converter.php b/apps/dav/lib/CardDAV/Converter.php index 2257b229e80..c6c8f96308b 100644 --- a/apps/dav/lib/CardDAV/Converter.php +++ b/apps/dav/lib/CardDAV/Converter.php @@ -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; } diff --git a/lib/private/User/User.php b/lib/private/User/User.php index c68d4ee290a..10e9122de84 100644 --- a/lib/private/User/User.php +++ b/lib/private/User/User.php @@ -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; } |