From 2d38018722b6b2f9169d7a32c4c5dab9f914b1d5 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 19 May 2019 13:24:54 -0500 Subject: [PATCH] remove commented old rss code --- backend/app/rest/api/rss.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/backend/app/rest/api/rss.go b/backend/app/rest/api/rss.go index 36e35449..b2d1fe3c 100644 --- a/backend/app/rest/api/rss.go +++ b/backend/app/rest/api/rss.go @@ -103,29 +103,6 @@ func (s *rss) repliesCtrl(w http.ResponseWriter, r *http.Request) { key := cache.NewKey(siteID).ID(URLKey(r)).Scopes(siteID, lastCommentsScope) data, err := s.cache.Get(key, func() (res []byte, e error) { - //comments, e := s.dataService.UserReplies(siteID, userID, maxRssItems, maxReplyDuration) - //if e != nil { - // return nil, errors.Wrap(e, "can't get last comments") - //} - //replies := []store.Comment{} - //for _, c := range comments { - // if len(replies) > maxRssItems || c.Timestamp.Add(maxReplyDuration).Before(time.Now()) { - // break - // } - // if c.User.ID != userID { - // userName = c.User.Name - // } - // if c.ParentID != "" && !c.Deleted && c.User.ID != userID { // not interested in replies to yourself - // var pc store.Comment - // if pc, e = s.dataService.Get(c.Locator, c.ParentID, rest.GetUserOrEmpty(r)); e != nil { - // return nil, errors.Wrap(e, "can't get parent comment") - // } - // if pc.User.ID == userID { - // replies = append(replies, c) - // } - // } - //} - replies, userName, e := s.dataService.UserReplies(siteID, userID, maxRssItems, maxReplyDuration) if e != nil { return nil, errors.Wrap(e, "can't get last comments")