Fix user of comment (response) recent activity after approval
authorMatthias Schmidt <gravatronics@live.com>
Mon, 19 Feb 2018 19:14:58 +0000 (20:14 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 19 Feb 2018 19:14:58 +0000 (20:14 +0100)
Close #2541

wcfsetup/install/files/lib/data/comment/CommentAction.class.php

index cf8b3878c6edcf07bc392fbef7bbe1b3052ed3d9..9d6e6156f6df2e164fd0073c1159be1790d7bf57 100644 (file)
@@ -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