summaryrefslogtreecommitdiff
path: root/core/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/structs.go')
-rw-r--r--core/structs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/structs.go b/core/structs.go
index 1244567..f9b738b 100644
--- a/core/structs.go
+++ b/core/structs.go
@@ -83,7 +83,7 @@ func GofeedConvert(f *gofeed.Feed, title string) (*Feed, error) {
item.Link = v.Link
// don't insert if older than 1 year
- if item.Published.After(time.Now().AddDate(-1, 0, 0)) {
+ if item.Published.After(HistoryDays) {
new.Items = append(new.Items, item)
}
}