Do not add filter for root folder, allowing ALL feeds to be marked as read.

Reeder Fever behavious is to send an id=0 when you mark all items as read
This commit is contained in:
Wes Koop
2026-04-01 19:08:47 -07:00
committed by nkanaev
parent 167aef9ba1
commit 74e6ee8e8e

View File

@@ -375,7 +375,10 @@ func (s *Server) feverMarkHandler(c *router.Context) {
if c.Req.Form.Get("as") != "read" {
c.Out.WriteHeader(http.StatusBadRequest)
}
markFilter := storage.MarkFilter{FolderID: &id}
markFilter := storage.MarkFilter{}
if id > 0 {
markFilter.FolderID = &id
}
x, _ := strconv.ParseInt(c.Req.Form.Get("before"), 10, 64)
if x > 0 {
before := time.Unix(x, 0).UTC()