Lack of filtering of content from ignored users
authorMarcel Werk <burntime@woltlab.com>
Wed, 7 Apr 2021 09:53:54 +0000 (11:53 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 7 Apr 2021 09:53:54 +0000 (11:53 +0200)
wcfsetup/install/files/lib/system/box/RecentActivityListBoxController.class.php

index c050fe81a6d754c6fe4f34cad24e8fa12e4dda30..6d6aa2f112d05dd9448b847b2fd9a212be403693 100644 (file)
@@ -201,6 +201,9 @@ class RecentActivityListBoxController extends AbstractDatabaseObjectListBoxContr
                        /** @noinspection PhpUndefinedMethodInspection */
                        $this->objectList->getConditionBuilder()->add('user_activity_event.userID IN (?)', [WCF::getUserProfileHandler()->getFollowingUsers()]);
                }
+               else if (!empty(UserProfileHandler::getInstance()->getIgnoredUsers())) {
+                       $this->objectList->getConditionBuilder()->add("user_activity_event.userID NOT IN (?)", [UserProfileHandler::getInstance()->getIgnoredUsers()]);
+               }
                
                return $this->objectList;
        }