We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cac631a commit 475411cCopy full SHA for 475411c
1 file changed
wcfsetup/install/files/lib/data/like/ViewableLike.class.php
@@ -4,6 +4,7 @@
4
5
use wcf\data\DatabaseObjectDecorator;
6
use wcf\data\object\type\ObjectTypeCache;
7
+use wcf\data\user\ignore\UserIgnore;
8
use wcf\data\user\UserProfile;
9
use wcf\system\cache\runtime\UserProfileRuntimeCache;
10
use wcf\system\user\UserProfileHandler;
@@ -148,6 +149,9 @@ public function getLink(): string
148
149
*/
150
public function isIgnoredContent(): bool
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
+ );
156
}
157
0 commit comments