Remove deprecated method in Comment(Response)?Action
authorJoshua Rüsweg <josh@bastelstu.be>
Sun, 11 Nov 2018 12:24:01 +0000 (13:24 +0100)
committerJoshua Rüsweg <josh@bastelstu.be>
Sun, 11 Nov 2018 12:24:01 +0000 (13:24 +0100)
See #2508

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

index d61ef2e1a359f62d650df86f9449456aefe55bd1..a759a66f01a8da61e0bf4729ea50e6d43ed5d66b 100644 (file)
@@ -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
index ad76f40ea83046271d5b662c22b4cf0317244e45..0077a00ba343e525ab5b26c066347d7e0dabacd6 100644 (file)
@@ -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;