From 0c30ed1639d1bc0ed9f436fd96454fff68cce2a8 Mon Sep 17 00:00:00 2001 From: Jay Malhotra <5047192+SapiensAnatis@users.noreply.github.com> Date: Sun, 2 Jun 2024 22:21:09 +0100 Subject: [PATCH] Filter out hidden news items in Blazor (#851) The MG news item was added as part of #850 but was filtered from the Svelte site, however it is now showing on the Blazor website --- DragaliaAPI/DragaliaAPI/RazorComponents/News/NewsComponent.razor | 1 + 1 file changed, 1 insertion(+) diff --git a/DragaliaAPI/DragaliaAPI/RazorComponents/News/NewsComponent.razor b/DragaliaAPI/DragaliaAPI/RazorComponents/News/NewsComponent.razor index fe860c991..6b7511a13 100644 --- a/DragaliaAPI/DragaliaAPI/RazorComponents/News/NewsComponent.razor +++ b/DragaliaAPI/DragaliaAPI/RazorComponents/News/NewsComponent.razor @@ -73,6 +73,7 @@ } this.allNewsItems = await this.ApiContext.NewsItems + .Where(x => !x.Hidden) .OrderByDescending(x => x.Date) .Select(x => new NewsItem(x)) .ToListAsync();