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

index 173573e4c4c19f9cb4bb6cc13d434e7b688cde99..87936fa97e18d43d415ff6977814948156481cf5 100644 (file)
@@ -9,8 +9,8 @@ use wcf\data\user\User;
 /**
  * Represents a user's cover photo.
  *
- * @author  Alexander Ebert
- * @copyright   2001-2019 WoltLab GmbH
+ * @author      Olaf Braun, Alexander Ebert
+ * @copyright   2001-2024 WoltLab GmbH
  * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  */
 final class UserCoverPhoto implements IUserCoverPhoto
@@ -47,7 +47,7 @@ final class UserCoverPhoto implements IUserCoverPhoto
     #[\Override]
     public function getURL(?bool $forceWebP = null): string
     {
-        return $this->file->getLink();
+        return $this->file->getFullSizeImageSource();
     }
 
     #[\Override]