Skip to content

Commit

Permalink
Make LastReviewTime check even stricter (#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
karashiiro authored Nov 25, 2024
1 parent c8d3db5 commit b54e123
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ private static bool IsInvalid(Universalis.Application.Uploads.Schema.Listing l)
var lastReviewTimeUnixSeconds = l.LastReviewTimeUnixSeconds ?? 0;
var lastReviewTime = DateTimeOffset.FromUnixTimeSeconds(lastReviewTimeUnixSeconds).UtcDateTime;

// For some reason the second check wasn't enough to catch this
if (lastReviewTimeUnixSeconds == 0 || (DateTime.UtcNow - lastReviewTime).TotalDays >= 8)
// For some reason the first check wasn't enough to catch this
if ((DateTime.UtcNow - lastReviewTime).TotalDays >= 8 || lastReviewTimeUnixSeconds == 0 || lastReviewTime.Year < 2024)
{
return false;
}
Expand Down

0 comments on commit b54e123

Please sign in to comment.