From: Marcel Werk Date: Thu, 27 Apr 2023 14:05:53 +0000 (+0200) Subject: Fix event hash for notifications about comment responses X-Git-Tag: 6.0.0_Alpha_1~190 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3df2adaad9a2e5b0f573290adb0a64a247335fe3;p=GitHub%2FWoltLab%2FWCF.git Fix event hash for notifications about comment responses --- 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); } /**