use wcf\data\moderation\queue\ViewableModerationQueue;
use wcf\system\cache\runtime\CommentResponseRuntimeCache;
use wcf\system\cache\runtime\CommentRuntimeCache;
+use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\WCF;
$responseAction->executeAction();
}
}
+
+ #[\Override]
+ public function isAffectedUser(ModerationQueue $queue, $userID)
+ {
+ if (!parent::isAffectedUser($queue, $userID)) {
+ return false;
+ }
+ $response = $this->getResponse($queue->objectID);
+ if ($response === null) {
+ return false;
+ }
+ $comment = $this->getComment($response->commentID);
+ if ($comment === null) {
+ return false;
+ }
+
+ return $this->getCommentManager($comment)->canModerateObject(
+ $comment->objectTypeID,
+ $comment->objectID,
+ UserProfileRuntimeCache::getInstance()->getObject($userID)
+ );
+ }
}