From e0ce9066d97e69dccc568c146b307b75dbb4d716 Mon Sep 17 00:00:00 2001 From: sudokoko Date: Sat, 7 Oct 2023 17:48:32 -0400 Subject: [PATCH] Do not show mod-hidden levels on landing page (#916) --- ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs index 7dd9a1ba..4b9b2041 100644 --- a/ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/LandingPage.cshtml.cs @@ -40,14 +40,14 @@ public class LandingPage : BaseLayout 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)