Skip to content

Commit 1c3defc

Browse files
committed
Merge branch 'hotfix/0.7.1'
2 parents a839b4b + a2e885e commit 1c3defc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

feed.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ import (
2222
func (um *Umbrella) getFeed(c *gin.Context) {
2323
feedItems := []models.FeedItem{}
2424
since := to.Int64(c.Request.URL.Query().Get("since"))
25+
twoMonthsAgo := time.Now().AddDate(0, -2, 0).Unix()
26+
if since < twoMonthsAgo {
27+
since = twoMonthsAgo
28+
}
2529
country, err := um.getCountryInfo(c.Request.URL.Query().Get("country"))
2630
um.checkErr(c, err)
2731
if err != nil {

0 commit comments

Comments
 (0)