We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c0339 commit b4adf28Copy full SHA for b4adf28
wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php
@@ -3,6 +3,7 @@
3
namespace wcf\data\user\avatar;
4
5
use wcf\data\file\File;
6
+use wcf\system\file\processor\UserAvatarFileProcessor;
7
use wcf\util\StringUtil;
8
9
/**
@@ -55,7 +56,8 @@ public function getSafeImageTag(?int $size = null): string
55
56
public function getURL($size = null)
57
{
58
if ($this->avatar instanceof File) {
- $thumbnail = $this->avatar->getThumbnail($size ?? '');
59
+ $thumbnail = $this->avatar->getThumbnail(UserAvatarFileProcessor::AVATAR_SIZE_2X)
60
+ ?? $this->avatar->getThumbnail(UserAvatarFileProcessor::AVATAR_SIZE);
61
if ($thumbnail !== null) {
62
return $thumbnail->getLink();
63
}
0 commit comments