From b3a97fd99f2a437ebd82ec2c5238c2c9cc030bea Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 19 Feb 2018 20:14:58 +0100 Subject: [PATCH] Fix user of comment (response) recent activity after approval Close #2541 --- .../install/files/lib/data/comment/CommentAction.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index cf8b3878c6..9d6e6156f6 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -397,7 +397,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli // fire activity event if ($comment->userID && UserActivityEventHandler::getInstance()->getObjectTypeID($objectType->objectType . '.recentActivityEvent')) { - UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType . '.recentActivityEvent', $comment->commentID, null, null, $comment->time); + UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType . '.recentActivityEvent', $comment->commentID, null, $comment->userID, $comment->time); } // fire notification event @@ -584,7 +584,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli // fire activity event if ($response->userID && UserActivityEventHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.recentActivityEvent')) { - UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType.'.response.recentActivityEvent', $response->responseID, null, null, $response->time); + UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType.'.response.recentActivityEvent', $response->responseID, null, $response->userID, $response->time); } // fire notification event -- 2.20.1