From: Matthias Schmidt Date: Sat, 15 Mar 2014 16:05:07 +0000 (+0100) Subject: Deletes comment response likes when deleting all comments of objects X-Git-Tag: 2.0.4~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bea98935eb74f482922f61fb4c4c4639898245ac;p=GitHub%2FWoltLab%2FWCF.git Deletes comment response likes when deleting all comments of objects --- 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);