From: Matthias Schmidt Date: Sat, 5 Aug 2017 09:47:52 +0000 (+0200) Subject: Fix event hash of comment (response) like user notification events X-Git-Tag: 3.1.0_Alpha_1~100 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec0ced52c874bdad0011800ec96f0401ec3cc253;p=GitHub%2FWoltLab%2FWCF.git Fix event hash of comment (response) like user notification events Close #2362 --- diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php index 0c3736c0c8..1e8a37509a 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php @@ -99,7 +99,7 @@ class UserProfileCommentLikeUserNotificationEvent extends AbstractSharedUserNoti * @inheritDoc */ public function getEventHash() { - return sha1($this->eventID . '-' . $this->additionalData['objectID']); + return sha1($this->eventID . '-' . $this->getCommentID()); } /** diff --git a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php index 06ca7437be..97f0af7c06 100644 --- a/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php +++ b/wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php @@ -110,7 +110,7 @@ class UserProfileCommentResponseLikeUserNotificationEvent extends AbstractShared * @inheritDoc */ public function getEventHash() { - return sha1($this->eventID . '-' . $this->additionalData['commentID']); + return sha1($this->eventID . '-' . $this->getUserNotificationObject()->objectID); } /**