mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
feat: API: Allow filtering entries on globally_hidden
Currently there's no way through the API to mimic the Unread page of the client. This is now possible by filtering on globally_visible=true and status=unread.
This commit is contained in:
parent
770cc1dbb3
commit
6fb7e84ce1
4 changed files with 62 additions and 0 deletions
|
@ -685,6 +685,10 @@ func buildFilterQueryString(path string, filter *Filter) string {
|
|||
values.Set("feed_id", strconv.FormatInt(filter.FeedID, 10))
|
||||
}
|
||||
|
||||
if filter.GloballyVisible {
|
||||
values.Set("globally_visible", "true")
|
||||
}
|
||||
|
||||
for _, status := range filter.Statuses {
|
||||
values.Add("status", status)
|
||||
}
|
||||
|
|
|
@ -278,6 +278,7 @@ type Filter struct {
|
|||
CategoryID int64
|
||||
FeedID int64
|
||||
Statuses []string
|
||||
GloballyVisible bool
|
||||
}
|
||||
|
||||
// EntryResultSet represents the response when fetching entries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue