mirror of
https://github.com/miniflux/v2.git
synced 2025-08-11 17:51:01 +00:00
Allow API search for entries which are not starred
This commit is contained in:
parent
fa8431c5c6
commit
fb585d0086
8 changed files with 24 additions and 10 deletions
|
@ -42,8 +42,12 @@ func (e *EntryQueryBuilder) WithSearchQuery(query string) *EntryQueryBuilder {
|
|||
}
|
||||
|
||||
// WithStarred adds starred filter.
|
||||
func (e *EntryQueryBuilder) WithStarred() *EntryQueryBuilder {
|
||||
e.conditions = append(e.conditions, "e.starred is true")
|
||||
func (e *EntryQueryBuilder) WithStarred(starred bool) *EntryQueryBuilder {
|
||||
if starred {
|
||||
e.conditions = append(e.conditions, "e.starred is true")
|
||||
} else {
|
||||
e.conditions = append(e.conditions, "e.starred is false")
|
||||
}
|
||||
return e
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue