Fixed activity events for comments/responses
authorAlexander Ebert <ebert@woltlab.com>
Wed, 8 Mar 2017 17:40:44 +0000 (18:40 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 8 Mar 2017 17:40:44 +0000 (18:40 +0100)
See #2219

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

index b919bb8ee21ddb6114905b7c4aa1a49779e185e2..576a0707b2fa8d71c15583e38317e17234e9bc21 100644 (file)
@@ -360,7 +360,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);
+                               UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType . '.recentActivityEvent', $comment->commentID, null, null, $comment->time);
                        }
                        
                        // fire notification event
@@ -528,7 +528,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli
                        
                        // fire activity event
                        if ($this->createdResponse->userID && UserActivityEventHandler::getInstance()->getObjectTypeID($objectType->objectType.'.response.recentActivityEvent')) {
-                               UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType.'.response.recentActivityEvent', $this->createdResponse->responseID);
+                               UserActivityEventHandler::getInstance()->fireEvent($objectType->objectType.'.response.recentActivityEvent', $response->responseID, null, null, $response->time);
                        }
                        
                        // fire notification event