From b2f21564605dae6da3a6cea09f5328a0f30eb33b Mon Sep 17 00:00:00 2001 From: Umputun Date: Mon, 9 Jul 2018 02:48:35 -0500 Subject: [PATCH] change rss reply scope to site --- backend/app/rest/api/rss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/rest/api/rss.go b/backend/app/rest/api/rss.go index 1b4a9695..b8f801cf 100644 --- a/backend/app/rest/api/rss.go +++ b/backend/app/rest/api/rss.go @@ -98,7 +98,7 @@ func (s *Rest) rssRepliesCtrl(w http.ResponseWriter, r *http.Request) { siteID := r.URL.Query().Get("site") log.Printf("[DEBUG] get rss replies to user %s for site %s", userID, siteID) - data, err := s.Cache.Get(cache.Key(cache.URLKey(r), siteID, userID), func() (res []byte, e error) { + data, err := s.Cache.Get(cache.Key(cache.URLKey(r), siteID), func() (res []byte, e error) { comments, e := s.DataService.Last(siteID, maxLastCommentsReply) if e != nil { return nil, errors.Wrap(e, "can't get last comments")