From bea98935eb74f482922f61fb4c4c4639898245ac Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 15 Mar 2014 17:05:07 +0100 Subject: [PATCH] Deletes comment response likes when deleting all comments of objects --- .../install/files/lib/system/comment/CommentHandler.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php index aa5f49c7a6..81d5f85b99 100644 --- a/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php +++ b/wcfsetup/install/files/lib/system/comment/CommentHandler.class.php @@ -148,6 +148,9 @@ class CommentHandler extends SingletonFactory { } if (!empty($responseIDs)) { + // delete likes (for responses) + LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $responseIDs); + // delete activity events (for responses) if (UserActivityEventHandler::getInstance()->getObjectTypeID($objectTypeObj->objectType.'.response.recentActivityEvent')) { UserActivityEventHandler::getInstance()->removeEvents($objectTypeObj->objectType.'.response.recentActivityEvent', $responseIDs); -- 2.20.1