From: Cyperghost Date: Thu, 12 Dec 2024 11:06:44 +0000 (+0100) Subject: Use `File::getFullSizeImageSource()` instead of `File::getLink()` X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea529be2fa9cf3e8494ab195af5f6bd7fc445cd3;p=GitHub%2FWoltLab%2FWCF.git Use `File::getFullSizeImageSource()` instead of `File::getLink()` --- 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(); }