From 38fd2a53162b952436010c8f732fc0c0ee0c23f5 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Thu, 12 Dec 2024 12:05:39 +0100 Subject: [PATCH] Use `File::getFullSizeImageSource()` instead of `File::getLink()` --- .../lib/data/user/cover/photo/UserCoverPhoto.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php index 173573e4c4..87936fa97e 100644 --- a/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php +++ b/wcfsetup/install/files/lib/data/user/cover/photo/UserCoverPhoto.class.php @@ -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 */ 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] -- 2.20.1