use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\UserInputException;
use wcf\system\language\LanguageFactory;
-use wcf\system\like\LikeHandler;
use wcf\system\message\embedded\object\MessageEmbeddedObjectManager;
+use wcf\system\reaction\ReactionHandler;
use wcf\system\request\LinkHandler;
use wcf\system\search\SearchIndexManager;
use wcf\system\tagging\TagEngine;
if (!empty($articleIDs)) {
// delete like data
- LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.likeableArticle', $articleIDs);
+ ReactionHandler::getInstance()->removeReactions('com.woltlab.wcf.likeableArticle', $articleIDs);
// delete comments
CommentHandler::getInstance()->deleteObjects('com.woltlab.wcf.articleComment', $articleContentIDs);
// delete tag to object entries
use wcf\data\like\object\LikeObject;
use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\comment\manager\ICommentManager;
-use wcf\system\like\LikeHandler;
+use wcf\system\reaction\ReactionHandler;
/**
* Provides a structured comment response list.
public function getLikeData() {
if (empty($this->objectIDs)) return [];
- $objectType = LikeHandler::getInstance()->getObjectType('com.woltlab.wcf.comment.response');
- LikeHandler::getInstance()->loadLikeObjects($objectType, $this->objectIDs);
- $likeData = ['response' => LikeHandler::getInstance()->getLikeObjects($objectType)];
+ $objectType = ReactionHandler::getInstance()->getObjectType('com.woltlab.wcf.comment.response');
+ ReactionHandler::getInstance()->loadLikeObjects($objectType, $this->objectIDs);
+ $likeData = ['response' => ReactionHandler::getInstance()->getLikeObjects($objectType)];
return $likeData;
}
use wcf\system\exception\NamedUserException;
use wcf\system\exception\SystemException;
use wcf\system\exception\UserInputException;
-use wcf\system\like\LikeHandler;
use wcf\system\message\censorship\Censorship;
+use wcf\system\reaction\ReactionHandler;
use wcf\system\user\activity\event\UserActivityEventHandler;
use wcf\system\user\notification\UserNotificationHandler;
use wcf\system\SingletonFactory;
$notificationObjectTypes[] = $objectTypeObj->objectType.'.like.notification';
}
- LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment', $commentIDs, $notificationObjectTypes);
+ ReactionHandler::getInstance()->removeReactions('com.woltlab.wcf.comment', $commentIDs, $notificationObjectTypes);
// delete activity events
if (UserActivityEventHandler::getInstance()->getObjectTypeID($objectTypeObj->objectType.'.recentActivityEvent')) {
$notificationObjectTypes[] = $objectTypeObj->objectType.'.response.like.notification';
}
- LikeHandler::getInstance()->removeLikes('com.woltlab.wcf.comment.response', $responseIDs, $notificationObjectTypes);
+ ReactionHandler::getInstance()->removeReactions('com.woltlab.wcf.comment.response', $responseIDs, $notificationObjectTypes);
// delete activity events (for responses)
if (UserActivityEventHandler::getInstance()->getObjectTypeID($objectTypeObj->objectType.'.response.recentActivityEvent')) {