Skip to content

Commit f2c2f9c

Browse files
committed
Apply suggestions from code review
1 parent 8c39454 commit f2c2f9c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wcfsetup/install/files/lib/data/like/ViewableLike.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use wcf\data\DatabaseObjectDecorator;
66
use wcf\data\object\type\ObjectTypeCache;
7+
use wcf\data\user\ignore\UserIgnore;
78
use wcf\data\user\UserProfile;
89
use wcf\system\cache\runtime\UserProfileRuntimeCache;
910
use wcf\system\user\UserProfileHandler;
@@ -148,6 +149,9 @@ public function getLink(): string
148149
*/
149150
public function isIgnoredContent(): bool
150151
{
151-
return UserProfileHandler::getInstance()->getUserProfile()->isIgnoredUser($this->getUserProfile()->userID, 2);
152+
return UserProfileHandler::getInstance()->getUserProfile()->isIgnoredUser(
153+
$this->getUserProfile()->userID,
154+
UserIgnore::TYPE_HIDE_MESSAGES
155+
);
152156
}
153157
}

0 commit comments

Comments
 (0)