Do not implement `IMultiRecipientCommentResponseOwnerUserNotificationObjectType`...
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 Sep 2023 12:39:21 +0000 (14:39 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 22 Sep 2023 12:44:32 +0000 (14:44 +0200)
This implementation is incorrect, because pages do not have an owner.

wcfsetup/install/files/lib/system/user/notification/object/type/PageCommentUserNotificationObjectType.class.php

index eaf7b0f46a4b5b40b35b425412f185aa9d4d7b9b..b1334c7e9eaf0541c8f14f7843c35a889afeff95 100644 (file)
@@ -15,8 +15,7 @@ use wcf\system\user\notification\object\CommentUserNotificationObject;
  * @since       5.2
  */
 class PageCommentUserNotificationObjectType extends AbstractUserNotificationObjectType implements
-    IMultiRecipientCommentUserNotificationObjectType,
-    IMultiRecipientCommentResponseOwnerUserNotificationObjectType
+    IMultiRecipientCommentUserNotificationObjectType
 {
     use TMultiRecipientPageCommentUserNotificationObjectType;
 
@@ -34,12 +33,4 @@ class PageCommentUserNotificationObjectType extends AbstractUserNotificationObje
      * @inheritDoc
      */
     protected static $objectListClassName = CommentList::class;
-
-    /**
-     * @inheritDoc
-     */
-    public function getCommentOwnerID(Comment $comment)
-    {
-        return $comment->userID;
-    }
 }