mirror of
https://github.com/miniflux/v2.git
synced 2025-08-06 17:41:00 +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
|
@ -8,6 +8,7 @@ import (
|
|||
json_parser "encoding/json"
|
||||
"errors"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"miniflux.app/http/request"
|
||||
|
@ -240,7 +241,10 @@ func configureFilters(builder *storage.EntryQueryBuilder, r *http.Request) {
|
|||
}
|
||||
|
||||
if request.HasQueryParam(r, "starred") {
|
||||
builder.WithStarred()
|
||||
starred, err := strconv.ParseBool(r.URL.Query().Get("starred"))
|
||||
if err == nil {
|
||||
builder.WithStarred(starred)
|
||||
}
|
||||
}
|
||||
|
||||
searchQuery := request.QueryStringParam(r, "search", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue