add core.HistoryDays for variable history kept
This commit is contained in:
+1
-1
@@ -98,7 +98,7 @@ func geminiFeed(data *core.FullData, remote string, title string) error {
|
||||
item.Link = link.String()
|
||||
|
||||
// don't insert if older than 1 year
|
||||
if item.Published.After(time.Now().AddDate(-1, 0, 0)) {
|
||||
if item.Published.After(core.HistoryDays) {
|
||||
feed.Items = append(feed.Items, item)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user