diff --git a/TASVideos.Core/Services/ForumService.cs b/TASVideos.Core/Services/ForumService.cs index 17921de5e..8181910bb 100644 --- a/TASVideos.Core/Services/ForumService.cs +++ b/TASVideos.Core/Services/ForumService.cs @@ -254,7 +254,7 @@ public async Task CreatePost(PostCreate post) return forumActivity; } - DateTime minimumDate = DateTime.UtcNow.AddDays(-ForumConstants.DaysPostsCountAsActive); + DateTime minimumDate = DateTime.UtcNow.AddDays(-(ForumConstants.DaysPostsCountAsActive - 1)); // we subtract 1 day here because we cache activity for 1 day var fullrow = await db.ForumPosts .Where(fp => fp.CreateTimestamp > minimumDate || fp.PostEditedTimestamp > minimumDate) @@ -306,7 +306,7 @@ public async Task CreatePost(PostCreate post) return subforumActivity; } - DateTime minimumDate = DateTime.UtcNow.AddDays(-ForumConstants.DaysPostsCountAsActive); + DateTime minimumDate = DateTime.UtcNow.AddDays(-(ForumConstants.DaysPostsCountAsActive - 1)); // we subtract 1 day here because we cache activity for 1 day var fullrow = await db.ForumPosts .Where(fp => fp.CreateTimestamp > minimumDate || fp.PostEditedTimestamp > minimumDate)