fix single entry rss feed

This commit is contained in:
Asim Aslam
2021-05-20 19:02:05 +01:00
parent 9fa599ec8c
commit d6861b08f8

View File

@@ -121,7 +121,7 @@ func (e *Rss) Feed(ctx context.Context, req *pb.FeedRequest, rsp *pb.FeedRespons
q := model.QueryEquals("ID", id)
// get the feed
if err := e.feeds.Read(q, feed); err != nil {
if err := e.feeds.Read(q, &feed); err != nil {
return errors.InternalServerError("rss.feeds", "could not read feed")
}
@@ -151,7 +151,7 @@ func (e *Rss) Feed(ctx context.Context, req *pb.FeedRequest, rsp *pb.FeedRespons
// if the need is not nil, then use one url
if feed != nil {
q = e.entriesURLIndex.ToQuery(feed.Feed)
q = e.entriesURLIndex.ToQuery(feed.Url)
}
q.Limit = req.Limit