From ae0d522c4ed52eca5574d4e5d58c8ca5889bce21 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 20 Mar 2024 12:44:44 +0100 Subject: [PATCH] Fire notification report --- .../queue/ModerationQueueReportManager.class.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php index 76a0c975fb..f8cc759977 100644 --- a/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php +++ b/wcfsetup/install/files/lib/system/moderation/queue/ModerationQueueReportManager.class.php @@ -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 + ); } } -- 2.20.1