1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Allow API search for entries which are not starred

This commit is contained in:
knrdl 2022-04-14 06:53:06 +02:00 committed by GitHub
parent fa8431c5c6
commit fb585d0086
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 10 deletions

View file

@ -542,8 +542,8 @@ func buildFilterQueryString(path string, filter *Filter) string {
values.Set("before_entry_id", strconv.FormatInt(filter.BeforeEntryID, 10))
}
if filter.Starred {
values.Set("starred", "1")
if filter.Starred != "" {
values.Set("starred", filter.Starred)
}
if filter.Search != "" {

View file

@ -221,6 +221,11 @@ type Enclosure struct {
// Enclosures represents a list of attachments.
type Enclosures []*Enclosure
const (
FilterNotStarred = "0"
FilterOnlyStarred = "1"
)
// Filter is used to filter entries.
type Filter struct {
Status string
@ -228,7 +233,7 @@ type Filter struct {
Limit int
Order string
Direction string
Starred bool
Starred string
Before int64
After int64
BeforeEntryID int64