Skip to content

Commit 08da325

Browse files
committed
fix(feed): filter for active topics and sources in feed decorator
- Add status filter for topics and sources in FeedDecoratorService - Ensure only active topics and sources are considered when fetching recommendations
1 parent 0c055e7 commit 08da325

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/shared/services/feed_decorator_service.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ class FeedDecoratorService {
348348
sort: [const SortOption('name', SortOrder.asc)],
349349
filter: {
350350
'_id': {r'$nin': followedTopicIds},
351+
'status': ContentStatus.active.name, // Filter for active topics
351352
},
352353
);
353354
if (topics.items.isEmpty) return null;
@@ -363,6 +364,7 @@ class FeedDecoratorService {
363364
sort: [const SortOption('name', SortOrder.asc)],
364365
filter: {
365366
'_id': {r'$nin': followedSourceIds},
367+
'status': ContentStatus.active.name, // Filter for active sources
366368
},
367369
);
368370
if (sources.items.isEmpty) return null;

0 commit comments

Comments
 (0)