Fix event hash of comment (response) like user notification events
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 09:47:52 +0000 (11:47 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Aug 2017 09:47:52 +0000 (11:47 +0200)
Close #2362

wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentLikeUserNotificationEvent.class.php
wcfsetup/install/files/lib/system/user/notification/event/UserProfileCommentResponseLikeUserNotificationEvent.class.php

index 0c3736c0c8f00068938f8b78ba25527549c41440..1e8a37509a0803a277f09608d3a932a52b210855 100644 (file)
@@ -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());
        }
        
        /**
index 06ca7437be1edcd5030339dab2368c54efb52b98..97f0af7c0667e1dd6267d8dbaee24d76f2067788 100644 (file)
@@ -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);
        }
        
        /**