From 9f667134c9ff7ee679eb97a91da532fc786d1be3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sun, 11 Nov 2018 13:24:01 +0100 Subject: [PATCH] Remove deprecated method in Comment(Response)?Action See #2508 --- .../install/files/lib/data/comment/CommentAction.class.php | 2 +- .../lib/data/comment/response/CommentResponseAction.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php index d61ef2e1a3..a759a66f01 100644 --- a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php @@ -153,7 +153,7 @@ class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli } // remove likes - ReactionHandler::getInstance()->removeLikes('com.woltlab.wcf.comment', $likeObjectIDs, $notificationObjectTypes); + ReactionHandler::getInstance()->removeReactions('com.woltlab.wcf.comment', $likeObjectIDs, $notificationObjectTypes); } // delete responses diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php index ad76f40ea8..0077a00ba3 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php @@ -12,7 +12,7 @@ use wcf\system\comment\CommentHandler; use wcf\system\exception\PermissionDeniedException; use wcf\system\exception\UserInputException; use wcf\system\html\input\HtmlInputProcessor; -use wcf\system\like\LikeHandler; +use wcf\system\reaction\ReactionHandler; use wcf\system\user\activity\event\UserActivityEventHandler; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; @@ -158,7 +158,7 @@ class CommentResponseAction extends AbstractDatabaseObjectAction { // remove likes if (!empty($likeObjectIDs)) { - LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $likeObjectIDs, $notificationObjectTypes); + ReactionHandler::getInstance()->removeReactions('com.woltlab.wcf.comment.response', $likeObjectIDs, $notificationObjectTypes); } return $count; -- 2.20.1