From 85ba447995d1fe23c9a16187dfd441d67e0f70ca Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Fri, 6 Sep 2024 11:25:18 +0200 Subject: [PATCH] Load embbeded content when moderation entries are displayed --- .../ConversationMessageModerationQueueReportHandler.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php b/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php index 17e8a13..c611a3e 100644 --- a/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php +++ b/files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php @@ -97,9 +97,8 @@ class ConversationMessageModerationQueueReportHandler extends AbstractModeration */ public function getReportedContent(ViewableModerationQueue $queue) { - /** @noinspection PhpParamsInspection */ WCF::getTPL()->assign([ - 'message' => new ViewableConversationMessage($queue->getAffectedObject()), + 'message' => ViewableConversationMessage::getViewableConversationMessage($queue->objectID), ]); return WCF::getTPL()->fetch('moderationConversationMessage'); -- 2.20.1