Fire notification report
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 20 Mar 2024 11:44:44 +0000 (12:44 +0100)
committerCyperghost <olaf_schmitz_1@t-online.de>
Wed, 20 Mar 2024 11:44:44 +0000 (12:44 +0100)
wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php

index 76a0c975fbca0877801c6e48b4b8e8ab3b7ce764..f8cc759977defaa68446438c09c1bc5b807720cf 100644 (file)
@@ -10,7 +10,9 @@ use wcf\system\cache\builder\UserGroupOptionCacheBuilder;
 use wcf\system\cache\runtime\UserProfileRuntimeCache;
 use wcf\system\exception\InvalidObjectTypeException;
 use wcf\system\request\LinkHandler;
+use wcf\system\user\notification\object\ModerationQueueUserNotificationObject;
 use wcf\system\user\notification\object\type\TMultiRecipientModerationQueueCommentUserNotificationObjectType;
+use wcf\system\user\notification\UserNotificationHandler;
 use wcf\system\WCF;
 
 /**
@@ -254,6 +256,11 @@ class ModerationQueueReportManager extends AbstractModerationQueueManager
         if ($userIDs === []) {
             return;
         }
-        //TODO notify moderators
+        UserNotificationHandler::getInstance()->fireEvent(
+            'report',
+            'com.woltlab.wcf.moderation.queue',
+            new ModerationQueueUserNotificationObject($queue),
+            $userIDs
+        );
     }
 }