Fix assertion in TMultiRecipientModerationQueueCommentUserNotificationObjectType
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Apr 2022 08:33:34 +0000 (10:33 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 25 Apr 2022 08:34:16 +0000 (10:34 +0200)
wcfsetup/install/files/lib/system/user/notification/object/type/TMultiRecipientModerationQueueCommentUserNotificationObjectType.class.php

index 95ca61b501a8ec07d02055cfafb3a811d5002cd6..690f638bdf1ee4b137716db8a723d6ca7cb5e04f 100644 (file)
@@ -10,8 +10,8 @@ use wcf\system\cache\builder\UserGroupOptionCacheBuilder;
 use wcf\system\cache\runtime\UserProfileRuntimeCache;
 use wcf\system\comment\CommentHandler;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
+use wcf\system\moderation\queue\IModerationQueueHandler;
 use wcf\system\moderation\queue\ModerationQueueManager;
-use wcf\system\moderation\queue\report\IModerationQueueReportHandler;
 use wcf\system\user\storage\UserStorageHandler;
 use wcf\system\WCF;
 
@@ -68,7 +68,7 @@ trait TMultiRecipientModerationQueueCommentUserNotificationObjectType
         $canUseModerationOption = UserGroupOptionCacheBuilder::getInstance()->getData()['options']['mod.general.canUseModeration'];
         $processor = $objectType->getProcessor();
 
-        \assert($processor instanceof IModerationQueueReportHandler);
+        \assert($processor instanceof IModerationQueueHandler);
 
         // Load all userIDs, which have the permission to access the moderation AND which
         // have no entry in the table wcf1_moderation_queue_to_user for the given queue.