We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96e3f9e commit ab30ad2Copy full SHA for ab30ad2
src/Core/Core.csproj
@@ -2,7 +2,7 @@
2
3
<PropertyGroup>
4
<TargetFramework>netcoreapp2.2</TargetFramework>
5
- <Version>2.4.1.6</Version>
+ <Version>2.4.1.7</Version>
6
</PropertyGroup>
7
8
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
src/Core/Data/Repositories/PostRepository.cs
@@ -229,7 +229,7 @@ public async Task<IEnumerable<CategoryItem>> Categories()
229
230
if (_db.BlogPosts.Any())
231
{
232
- foreach (var p in _db.BlogPosts.Where(p => p.Categories != null))
+ foreach (var p in _db.BlogPosts.Where(p => p.Categories != null && p.Published > DateTime.MinValue))
233
234
var postcats = p.Categories.Split(',');
235
if (postcats.Any())
0 commit comments