namespace wcf\system\user\activity\event;
use wcf\data\comment\response\CommentResponseList;
use wcf\data\comment\CommentList;
-use wcf\data\user\UserList;
+use wcf\data\user\UserProfileList;
use wcf\system\user\activity\event\IUserActivityEvent;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
$userIDs[] = $comment->userID;
}
if (!empty($userIDs)) {
- $userList = new UserList();
+ $userList = new UserProfileList();
$userList->getConditionBuilder()->add("user_table.userID IN (?)", array($userIDs));
$userList->readObjects();
$users = $userList->getObjects();
if (isset($responses[$event->objectID])) {
$response = $responses[$event->objectID];
$comment = $comments[$response->commentID];
- if (isset($users[$comment->objectID]) && isset($users[$comment->userID])) {
+ if (isset($users[$comment->objectID]) && isset($users[$comment->userID]) && !$users[$comment->objectID]->isProtected()) {
$event->setIsAccessible();
// title
<?php
namespace wcf\system\user\activity\event;
use wcf\data\comment\CommentList;
-use wcf\data\user\UserList;
+use wcf\data\user\UserProfileList;
use wcf\system\user\activity\event\IUserActivityEvent;
use wcf\system\SingletonFactory;
use wcf\system\WCF;
$userIDs[] = $comment->objectID;
}
if (!empty($userIDs)) {
- $userList = new UserList();
+ $userList = new UserProfileList();
$userList->getConditionBuilder()->add("user_table.userID IN (?)", array($userIDs));
$userList->readObjects();
$users = $userList->getObjects();
if (isset($comments[$event->objectID])) {
// short output
$comment = $comments[$event->objectID];
- if (isset($users[$comment->objectID])) {
+ if (isset($users[$comment->objectID]) && !$users[$comment->objectID]->isProtected()) {
$event->setIsAccessible();
$user = $users[$comment->objectID];