Load embbeded content when moderation entries are displayed
authorCyperghost <olaf_schmitz_1@t-online.de>
Fri, 6 Sep 2024 09:25:18 +0000 (11:25 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Fri, 6 Sep 2024 09:25:18 +0000 (11:25 +0200)
files/lib/system/moderation/queue/report/ConversationMessageModerationQueueReportHandler.class.php

index 17e8a13c8582a255db681bd966245f04af6a67a1..c611a3ee2e7561f6788bcc3b6339814a561642da 100644 (file)
@@ -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');