mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 07:15:25 +00:00
fix single entry rss feed
This commit is contained in:
@@ -121,7 +121,7 @@ func (e *Rss) Feed(ctx context.Context, req *pb.FeedRequest, rsp *pb.FeedRespons
|
|||||||
q := model.QueryEquals("ID", id)
|
q := model.QueryEquals("ID", id)
|
||||||
|
|
||||||
// get the feed
|
// 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")
|
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 the need is not nil, then use one url
|
||||||
if feed != nil {
|
if feed != nil {
|
||||||
q = e.entriesURLIndex.ToQuery(feed.Feed)
|
q = e.entriesURLIndex.ToQuery(feed.Url)
|
||||||
}
|
}
|
||||||
|
|
||||||
q.Limit = req.Limit
|
q.Limit = req.Limit
|
||||||
|
|||||||
Reference in New Issue
Block a user