From: Marcel Werk Date: Mon, 22 Jan 2024 15:10:10 +0000 (+0100) Subject: Also load articles that are not accessible X-Git-Tag: 6.1.0_Alpha_1~210^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6ab5746edf4341034912894a1370aca92d4c51e;p=GitHub%2FWoltLab%2FWCF.git Also load articles that are not accessible Otherwise it would not be possible to determine in the BBCode whether an article exists or is not accessible. --- diff --git a/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php b/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php index 10b7162ca5..5757ad647f 100644 --- a/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/message/embedded/object/ArticleMessageEmbeddedObjectHandler.class.php @@ -5,7 +5,7 @@ namespace wcf\system\message\embedded\object; use wcf\data\article\AccessibleArticleList; use wcf\data\article\Article; use wcf\data\article\content\ViewableArticleContentList; -use wcf\system\cache\runtime\ViewableArticleRuntimeCache; +use wcf\data\article\ViewableArticleList; use wcf\system\html\input\HtmlInputProcessor; /** @@ -38,7 +38,7 @@ class ArticleMessageEmbeddedObjectHandler extends AbstractSimpleMessageEmbeddedO public function loadObjects(array $objectIDs) { // Do not use `ViewableArticleRuntimeCache` to avoid recursively loading embedded objects. - $articleList = new AccessibleArticleList(); + $articleList = new ViewableArticleList(); $articleList->enableEmbeddedObjectLoading(false); $articleList->getConditionBuilder()->add('article.articleID IN (?)', [$objectIDs]); $articleList->readObjects();