Use `File::getFullSizeImageSource()` instead of `File::getLink()`
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 12 Dec 2024 11:06:44 +0000 (12:06 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 12 Dec 2024 11:06:44 +0000 (12:06 +0100)
wcfsetup/install/files/lib/data/user/avatar/AvatarDecorator.class.php

index 547fb2eba5c863dc397e25331fa8c6c6152c0f53..85bd082fe78d2962e8aac6c642038c69f3950f56 100644 (file)
@@ -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 <http://opensource.org/licenses/lgpl-license.php>
  */
 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();
         }