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); }