Skip to content

Commit e196aad

Browse files
matheuszychthojou
authored andcommitted
Hides news from objects where news are disabled
1 parent 5471e50 commit e196aad

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

components/ILIAS/News/src/Aggregation/NewsAggregator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public function aggregate(array $contexts): array
5353

5454
// Prepare queue
5555
foreach ($contexts as $context) {
56+
$strategy = $this->getStrategy($context->getObjType());
57+
if ($strategy === null || $strategy->shouldSkip($context)) {
58+
continue;
59+
}
5660
$frontier->enqueue($context);
5761
}
5862

0 commit comments

Comments
 (0)