From: joshuaruesweg Date: Fri, 5 Mar 2021 09:48:44 +0000 (+0100) Subject: Use `getControllerLink` instead of `getLink` X-Git-Tag: 5.4.0_Alpha_1~146^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=30c5d2f056c7a737c80e1ea7f8ae14374cbecc8b;p=GitHub%2FWoltLab%2FWCF.git Use `getControllerLink` instead of `getLink` --- diff --git a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php index 4cbdb4a68f..0bba64f154 100644 --- a/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php +++ b/wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php @@ -2,6 +2,7 @@ namespace wcf\data\unfurl\url; +use wcf\action\ImageProxyAction; use wcf\data\DatabaseObject; use wcf\system\request\LinkHandler; use wcf\system\WCF; @@ -78,7 +79,7 @@ class UnfurlUrl extends DatabaseObject if (MODULE_IMAGE_PROXY) { $key = CryptoUtil::createSignedString($this->imageUrl); - return LinkHandler::getInstance()->getLink('ImageProxy', [ + return LinkHandler::getInstance()->getControllerLink(ImageProxyAction::class, [ 'key' => $key, ]); } elseif (IMAGE_ALLOW_EXTERNAL_SOURCE) {