Allow to edit user avatar via user admin page.

This commit is contained in:
Jan Böhmer 2023-01-23 23:58:11 +01:00
parent 97b87dee5f
commit daba6edf5d
4 changed files with 17 additions and 7 deletions

View file

@ -50,7 +50,7 @@ class UserAvatarHelper
{
//Check if the user has a master attachment defined (meaning he has explicitly defined a profile picture)
if ($user->getMasterPictureAttachment() !== null) {
return $this->attachmentURLGenerator->getThumbnailURL($user->getMasterPictureAttachment());
return $this->attachmentURLGenerator->getThumbnailURL($user->getMasterPictureAttachment(), 'thumbnail_md');
}
//If not check if gravatar is enabled (then use gravatar URL)