- commit
- f685533
- parent
- 04c7308
- author
- Eric Bower
- date
- 2024-09-23 17:03:16 +0000 UTC
fix(feeds): flip post expiration check
1 files changed,
+1,
-1
+1,
-1
1@@ -133,7 +133,7 @@ func (f *Fetcher) Validate(post *db.Post, parsed *shared.ListParsedText) error {
2
3 expiresAt := post.ExpiresAt
4 if expiresAt != nil {
5- if post.ExpiresAt.After(now) {
6+ if post.ExpiresAt.Before(now) {
7 return fmt.Errorf("(%s) post has expired, skipping", post.ExpiresAt.Format(time.RFC3339))
8 }
9 }