From ea529be2fa9cf3e8494ab195af5f6bd7fc445cd3 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 12 Dec 2024 12:06:44 +0100 Subject: [PATCH] Use `File::getFullSizeImageSource()` instead of `File::getLink()` --- .../files/lib/data/user/avatar/AvatarDecorator.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php b/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php index 547fb2eba5..85bd082fe7 100644 --- a/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php +++ b/wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php @@ -9,8 +9,8 @@ use wcf\util\StringUtil; /** * Wraps avatars to provide compatibility layers. * - * @author Tim Duesterhus - * @copyright 2001-2021 WoltLab GmbH + * @author Olaf Braun, Tim Duesterhus + * @copyright 2001-2024 WoltLab GmbH * @license GNU Lesser General Public License */ final class AvatarDecorator implements IUserAvatar, ISafeFormatAvatar @@ -62,7 +62,7 @@ final class AvatarDecorator implements IUserAvatar, ISafeFormatAvatar return $thumbnail->getLink(); } - return $this->avatar->getLink(); + return $this->avatar->getFullSizeImageSource(); } else { return $this->avatar->getURL(); } -- 2.20.1