diff --git a/googlereader/handler.go b/googlereader/handler.go index 002b7ca8..dc3ce1dd 100644 --- a/googlereader/handler.go +++ b/googlereader/handler.go @@ -1123,6 +1123,13 @@ func (h *handler) handleReadingListStream(w http.ResponseWriter, r *http.Request builder.WithLimit(rm.Count) builder.WithOrder(model.DefaultSortingOrder) builder.WithDirection(rm.SortDirection) + if rm.StartTime > 0 { + builder.AfterDate(time.Unix(rm.StartTime, 0)) + } + if rm.StopTime > 0 { + builder.BeforeDate(time.Unix(rm.StopTime, 0)) + } + rawEntryIDs, err := builder.GetEntryIDs() if err != nil { logger.Error("[GoogleReader][/stream/items/ids#reading-list] [ClientIP=%s] %v", clientIP, err) @@ -1145,6 +1152,13 @@ func (h *handler) handleStarredStream(w http.ResponseWriter, r *http.Request, rm builder.WithLimit(rm.Count) builder.WithOrder(model.DefaultSortingOrder) builder.WithDirection(rm.SortDirection) + if rm.StartTime > 0 { + builder.AfterDate(time.Unix(rm.StartTime, 0)) + } + if rm.StopTime > 0 { + builder.BeforeDate(time.Unix(rm.StopTime, 0)) + } + rawEntryIDs, err := builder.GetEntryIDs() if err != nil { logger.Error("[GoogleReader][/stream/items/ids#starred] [ClientIP=%s] %v", clientIP, err)