use wcf\data\comment\Comment;
use wcf\data\comment\response\CommentResponse;
use wcf\data\user\activity\event\ViewableUserActivityEvent;
-use wcf\data\user\User;
+use wcf\data\user\UserProfile;
use wcf\system\cache\runtime\CommentResponseRuntimeCache;
use wcf\system\cache\runtime\CommentRuntimeCache;
-use wcf\system\cache\runtime\UserRuntimeCache;
+use wcf\system\cache\runtime\UserProfileRuntimeCache;
/**
* Provides a method to read the comment response, comment, and user objects related to comment
trait TCommentResponseUserActivityEvent {
/**
* user objects for the comment authors
- * @var User[]
+ * @var UserProfile[]
*/
protected $commentAuthors = [];
$this->commentObjectIDs[] = $comment->objectID;
}
if (!empty($userIDs)) {
- $this->commentAuthors = UserRuntimeCache::getInstance()->getObjects($userIDs);
+ $this->commentAuthors = UserProfileRuntimeCache::getInstance()->getObjects($userIDs);
}
}
}