add core.HistoryDays for variable history kept

This commit is contained in:
nytpu
2021-05-19 08:00:21 -06:00
parent ac86835f6d
commit f9d8872260
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -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)
}
}