Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(dav): Fix avatar size in system address book
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen authored and backportbot-nextcloud[bot] committed May 26, 2023
commit bbb9437116d0ec0ee74db10ac1516c15bf3ae9ad
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function splitFullName(string $fullName): array {

private function getAvatarImage(IUser $user): ?IImage {
try {
return $user->getAvatarImage(-1);
return $user->getAvatarImage(512);
} catch (Exception $ex) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public function getAvatarImage($size) {
}

$avatar = $this->avatarManager->getAvatar($this->uid);
$image = $avatar->get(-1);
$image = $avatar->get($size);
if ($image) {
return $image;
}
Expand Down