From a415fd1b3799aa63a4cb457407ba1cfdaf58f067 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Mon, 25 Mar 2024 11:07:00 +0100 Subject: [PATCH] Use runtime cache for article content --- .../lib/system/comment/manager/ArticleCommentManager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php index 834e6caea5..e900765a4c 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ArticleCommentManager.class.php @@ -75,7 +75,7 @@ class ArticleCommentManager extends AbstractCommentManager implements IViewableL #[\Override] public function canModerateObject(int $objectTypeID, int $objectID, UserProfile $user): bool { - $articleContent = new ArticleContent($objectID); + $articleContent = ViewableArticleContentRuntimeCache::getInstance()->getObject($objectID); if (!$articleContent->articleContentID) { return false; } -- 2.20.1