<ul class="sidebarItemList">
{foreach from=$eventList item=event}
- <li class="box24{if $__wcf->getUserProfileHandler()->isIgnoredUser($event->getUserProfile()->userID)} ignoredUserContent{/if}">
+ <li class="box24{if $__wcf->getUserProfileHandler()->isIgnoredUser($event->getUserProfile()->userID, 2)} ignoredUserContent{/if}">
{user object=$event->getUserProfile() type='avatar24' ariaHidden='true' tabindex='-1'}
<div class="sidebarItemTitle">
data-can-edit="{if $comment->isEditable()}true{else}false{/if}" data-can-delete="{if $comment->isDeletable()}true{else}false{/if}"
data-responses="{@$comment->responses}" data-last-response-time="{if $commentLastResponseTime|empty}{@$comment->getLastResponseTime()}{else}{@$commentLastResponseTime}{/if}" data-is-disabled="{@$comment->isDisabled}"
>
- <div class="box48{if $__wcf->getUserProfileHandler()->isIgnoredUser($comment->userID)} ignoredUserContent{/if}">
+ <div class="box48{if $__wcf->getUserProfileHandler()->isIgnoredUser($comment->userID, 2)} ignoredUserContent{/if}">
{user object=$comment->getUserProfile() type='avatar48' ariaHidden='true' tabindex='-1'}
<div class="commentContentContainer" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
</li>
{else}
<li class="commentResponse jsCommentResponse" data-response-id="{@$response->responseID}" {@$__wcf->getReactionHandler()->getDataAttributes('com.woltlab.wcf.comment.response', $response->responseID)} data-can-edit="{if $response->isEditable()}true{else}false{/if}" data-can-delete="{if $response->isDeletable()}true{else}false{/if}" data-user-id="{@$response->userID}">
- <div class="box32{if $__wcf->getUserProfileHandler()->isIgnoredUser($response->userID)} ignoredUserContent{/if}">
+ <div class="box32{if $__wcf->getUserProfileHandler()->isIgnoredUser($response->userID, 2)} ignoredUserContent{/if}">
{user object=$response->getUserProfile() type='avatar32' ariaHidden='true' tabindex='-1'}
<div class="commentContent commentResponseContent" itemprop="comment" itemscope itemtype="http://schema.org/Comment">
{foreach from=$eventList item=event}
<li>
- <div class="box48{if $__wcf->getUserProfileHandler()->isIgnoredUser($event->getUserProfile()->userID)} ignoredUserContent{/if}">
+ <div class="box48{if $__wcf->getUserProfileHandler()->isIgnoredUser($event->getUserProfile()->userID, 2)} ignoredUserContent{/if}">
{user object=$event->getUserProfile() type='avatar48' ariaHidden='true' tabindex='-1'}
<div>
{/if}
{if $__wcf->user->userID && $user->userID != $__wcf->user->userID}
- {if !$__wcf->getUserProfileHandler()->isIgnoredByUser($user->userID)}
+ {if !$__wcf->getUserProfileHandler()->isIgnoredByUser($user->userID, 1)}
{if $__wcf->getUserProfileHandler()->isFollowing($user->userID)}
<li class="jsOnly"><a href="#" data-following="1" data-object-id="{@$user->userID}" class="jsFollowButton jsTooltip" title="{lang}wcf.user.button.unfollow{/lang}"><span class="icon icon16 fa-minus"></span> <span class="invisible">{lang}wcf.user.button.unfollow{/lang}</span></a></li>
{else}
namespace wcf\page;
use wcf\data\user\activity\event\ViewableUserActivityEventList;
+use wcf\data\user\ignore\UserIgnore;
use wcf\system\page\PageLocationManager;
use wcf\system\request\LinkHandler;
use wcf\system\user\activity\event\UserActivityEventHandler;
$this->eventList = new ViewableUserActivityEventList();
- if (!empty(UserProfileHandler::getInstance()->getIgnoredUsers())) {
+ if (!empty(UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES))) {
$this->eventList->getConditionBuilder()->add(
"user_activity_event.userID NOT IN (?)",
- [UserProfileHandler::getInstance()->getIgnoredUsers()]
+ [UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES)]
);
}
use wcf\data\comment\ViewableCommentList;
use wcf\data\object\type\ObjectType;
use wcf\data\object\type\ObjectTypeCache;
+use wcf\data\user\ignore\UserIgnore;
use wcf\system\exception\InvalidObjectTypeException;
use wcf\system\user\UserProfileHandler;
use wcf\system\WCF;
$this->applyObjectTypeFilters($commentList);
- if (!empty(UserProfileHandler::getInstance()->getIgnoredUsers())) {
+ if (!empty(UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES))) {
$commentList->getConditionBuilder()->add(
"(comment.userID IS NULL OR comment.userID NOT IN (?))",
- [UserProfileHandler::getInstance()->getIgnoredUsers()]
+ [UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES)]
);
}
namespace wcf\system\box;
use wcf\data\user\activity\event\ViewableUserActivityEventList;
+use wcf\data\user\ignore\UserIgnore;
use wcf\system\condition\IObjectListCondition;
use wcf\system\request\LinkHandler;
use wcf\system\user\activity\event\UserActivityEventHandler;
[WCF::getUserProfileHandler()->getFollowingUsers()]
);
}
- } elseif (!empty(UserProfileHandler::getInstance()->getIgnoredUsers())) {
+ } elseif (!empty(UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES))) {
$this->objectList->getConditionBuilder()->add(
"user_activity_event.userID NOT IN (?)",
- [UserProfileHandler::getInstance()->getIgnoredUsers()]
+ [UserProfileHandler::getInstance()->getIgnoredUsers(UserIgnore::TYPE_HIDE_MESSAGES)]
);
}
use wcf\data\comment\response\CommentResponse;
use wcf\data\comment\response\CommentResponseList;
use wcf\data\object\type\ObjectTypeCache;
+use wcf\data\user\ignore\UserIgnore;
use wcf\system\cache\runtime\UserProfileRuntimeCache;
use wcf\system\like\IViewableLikeProvider;
use wcf\system\request\LinkHandler;
return false;
}
- if ($userProfile->isIgnoredUser(WCF::getUser()->userID)) {
+ if ($userProfile->isIgnoredUser(WCF::getUser()->userID, UserIgnore::TYPE_BLOCK_DIRECT_CONTACT)) {
return false;
}
}