From 3df2adaad9a2e5b0f573290adb0a64a247335fe3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 27 Apr 2023 16:05:53 +0200 Subject: [PATCH] Fix event hash for notifications about comment responses --- .../AbstractCommentResponseUserNotificationEvent.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php index 091a471307..7a56a4b45f 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/AbstractCommentResponseUserNotificationEvent.class.php @@ -2,6 +2,9 @@ namespace wcf\system\user\notification\event; +use wcf\system\cache\runtime\CommentRuntimeCache; +use wcf\system\user\notification\object\CommentResponseUserNotificationObject; + /** * Provides a default implementation for user notifications about comment responses. * @@ -9,6 +12,8 @@ namespace wcf\system\user\notification\event; * @copyright 2001-2023 WoltLab GmbH * @license GNU Lesser General Public License * @since 6.0 + * + * @method CommentResponseUserNotificationObject getUserNotificationObject() */ abstract class AbstractCommentResponseUserNotificationEvent extends AbstractSharedUserNotificationEvent { @@ -57,7 +62,7 @@ abstract class AbstractCommentResponseUserNotificationEvent extends AbstractShar */ public function getEventHash() { - return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->objectID); + return \sha1($this->eventID . '-' . $this->getUserNotificationObject()->commentID); } /** -- 2.20.1