From 83289dfa215c20c4bc69081a2874f5e558cf747e Mon Sep 17 00:00:00 2001 From: Matheus Zych Date: Mon, 26 Jan 2026 10:59:54 +0100 Subject: [PATCH] Hides news from objects where news are disabled --- components/ILIAS/News/src/Aggregation/NewsAggregator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/ILIAS/News/src/Aggregation/NewsAggregator.php b/components/ILIAS/News/src/Aggregation/NewsAggregator.php index ecdca1f368ad..4235534c7207 100644 --- a/components/ILIAS/News/src/Aggregation/NewsAggregator.php +++ b/components/ILIAS/News/src/Aggregation/NewsAggregator.php @@ -53,6 +53,10 @@ public function aggregate(array $contexts): array // Prepare queue foreach ($contexts as $context) { + $strategy = $this->getStrategy($context->getObjType()); + if ($strategy === null || $strategy->shouldSkip($context)) { + continue; + } $frontier->enqueue($context); }