Skip to content

Commit

Permalink
Do not show mod-hidden levels on landing page (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudokoko authored Oct 7, 2023
1 parent 248f141 commit e0ce906
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ public async Task<IActionResult> OnGet()

const int maxShownLevels = 5;

this.LatestTeamPicks = await this.Database.Slots.Where(s => s.Type == SlotType.User && !s.SubLevel)
this.LatestTeamPicks = await this.Database.Slots.Where(s => s.Type == SlotType.User && !s.SubLevel && !s.Hidden)
.Where(s => s.TeamPick)
.OrderByDescending(s => s.FirstUploaded)
.Take(maxShownLevels)
.Include(s => s.Creator)
.ToListAsync();

this.NewestLevels = await this.Database.Slots.Where(s => s.Type == SlotType.User && !s.SubLevel)
this.NewestLevels = await this.Database.Slots.Where(s => s.Type == SlotType.User && !s.SubLevel && !s.Hidden)
.OrderByDescending(s => s.FirstUploaded)
.Take(maxShownLevels)
.Include(s => s.Creator)
Expand Down

0 comments on commit e0ce906

Please sign in to comment.