We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a839b4b + a2e885e commit 1c3defcCopy full SHA for 1c3defc
1 file changed
feed.go
@@ -22,6 +22,10 @@ import (
22
func (um *Umbrella) getFeed(c *gin.Context) {
23
feedItems := []models.FeedItem{}
24
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
+ }
29
country, err := um.getCountryInfo(c.Request.URL.Query().Get("country"))
30
um.checkErr(c, err)
31
if err != nil {
0 commit comments