diff --git a/ProjectLighthouse.Servers.Website/Pages/SlotsPage.cshtml.cs b/ProjectLighthouse.Servers.Website/Pages/SlotsPage.cshtml.cs index e844102e..3d0b944e 100644 --- a/ProjectLighthouse.Servers.Website/Pages/SlotsPage.cshtml.cs +++ b/ProjectLighthouse.Servers.Website/Pages/SlotsPage.cshtml.cs @@ -56,7 +56,7 @@ public class SlotsPage : BaseLayout this.SearchValue = name.Trim(); this.SlotCount = await this.Database.Slots.Include(p => p.Creator) - .Where(p => p.Type == SlotType.User) + .Where(p => p.Type == SlotType.User && !p.Hidden) .Where(p => p.Name.Contains(finalSearch.ToString())) .Where(p => p.Creator != null && (targetAuthor == null || string.Equals(p.Creator.Username.ToLower(), targetAuthor.ToLower()))) .Where(p => targetGame == null || p.GameVersion == targetGame) @@ -68,7 +68,7 @@ public class SlotsPage : BaseLayout if (this.PageNumber < 0 || this.PageNumber >= this.PageAmount) return this.Redirect($"/slots/{Math.Clamp(this.PageNumber, 0, this.PageAmount - 1)}"); this.Slots = await this.Database.Slots.Include(p => p.Creator) - .Where(p => p.Type == SlotType.User) + .Where(p => p.Type == SlotType.User && !p.Hidden) .Where(p => p.Name.Contains(finalSearch.ToString())) .Where(p => p.Creator != null && (targetAuthor == null || string.Equals(p.Creator.Username.ToLower(), targetAuthor.ToLower()))) .Where(p => p.Creator!.LevelVisibility == PrivacyType.All) // TODO: change check for when user is logged in