From ec0ced52c874bdad0011800ec96f0401ec3cc253 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 5 Aug 2017 11:47:52 +0200 Subject: [PATCH] Fix event hash of comment (response) like user notification events Close #2362 --- .../event/UserProfileCommentLikeUserNotificationEvent.class.php | 2 +- ...serProfileCommentResponseLikeUserNotificationEvent.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } /** -- 2.20.1