From: Alexander Ebert Date: Thu, 9 Mar 2017 22:31:42 +0000 (+0100) Subject: Fixed adding comments to moderation queues X-Git-Tag: 3.1.0_Alpha_1~581 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7d445792495b7dd10f47bf2b87d74c91e0df2bd3;p=GitHub%2FWoltLab%2FWCF.git Fixed adding comments to moderation queues --- diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index e3766aca5d..42b0c10b8f 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -374,7 +374,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli $notificationObjectType = UserNotificationHandler::getInstance()->getObjectTypeProcessor($objectType->objectType . '.notification'); if ($notificationObjectType instanceof IMultiRecipientCommentUserNotificationObjectType) { - $recipientIDs = $notificationObjectType->getRecipientIDs($comment); + $recipientIDs = $notificationObjectType->getRecipientIDs($comment->getDecoratedObject()); // make sure that the active user gets no notification $recipientIDs = array_diff($recipientIDs, [WCF::getUser()->userID]); diff --git a/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php b/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php index 31ccda75b4..40be2ac18c 100644 --- a/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php +++ b/wcfsetup/install/files/lib/system/comment/manager/ModerationQueueCommentManager.class.php @@ -21,6 +21,13 @@ class ModerationQueueCommentManager extends AbstractCommentManager { return $entry->canEdit(); } + /** + * @inheritDoc + */ + public function canAddWithoutApproval($objectID) { + return true; + } + /** * @inheritDoc */