Add missing UserIgnore::TYPE_HIDE_MESSAGES parameter
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 23 Apr 2021 09:06:27 +0000 (11:06 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 23 Apr 2021 09:06:27 +0000 (11:06 +0200)
This was missed in #4064, because it was recently added.

see 1f559e452754ac0ebaf694499ba9fe30dff2c35f

wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php

index 5052c3217484ebafceb3dec980d670a5f5290519..55ae44fe8b413ee43e24b8f82ea9ec7e7d96f6d5 100644 (file)
@@ -219,10 +219,10 @@ class RecentActivityListBoxController extends AbstractDatabaseObjectListBoxContr
                 'user_activity_event.userID IN (?)',
                 [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)]
             );
         }