Skip to content

Commit 526ed75

Browse files
committed
only show active posts
1 parent 90cffc0 commit 526ed75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FU.API/FU.API/Services/SearchService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public async Task<List<Post>> SearchPosts(PostQuery query)
2323

2424
// Filters are addded one at a time, generally by the amount of posts they filter out
2525

26+
// Only show active posts - maybe in future we can parameterize this
27+
dbQuery = dbQuery.Where(p => p.Status == PostStatus.Active);
28+
2629
// Filter by games
2730
if (query.GameIds.Count > 0)
2831
{

0 commit comments

Comments
 (0)