From: Matthias Schmidt Date: Mon, 19 Feb 2018 19:14:58 +0000 (+0100) Subject: Fix user of comment (response) recent activity after approval X-Git-Tag: 3.1.0~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3a97fd99f2a437ebd82ec2c5238c2c9cc030bea;p=GitHub%2FWoltLab%2FWCF.git Fix user of comment (response) recent activity after approval Close #2541 --- 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