From 30c5d2f056c7a737c80e1ea7f8ae14374cbecc8b Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Fri, 5 Mar 2021 10:48:44 +0100 Subject: [PATCH] Use `getControllerLink` instead of `getLink` --- wcfsetup/install/files/lib/data/unfurl/url/UnfurlUrl.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.20.1