mirror of
https://github.com/miniflux/v2.git
synced 2025-07-02 16:38:37 +00:00
Add integration test for search query
This commit is contained in:
parent
ca30800e6a
commit
364198ba4a
4 changed files with 32 additions and 1 deletions
4
vendor/github.com/miniflux/miniflux-go/client.go
generated
vendored
4
vendor/github.com/miniflux/miniflux-go/client.go
generated
vendored
|
@ -497,6 +497,10 @@ func buildFilterQueryString(path string, filter *Filter) string {
|
|||
values.Set("starred", "1")
|
||||
}
|
||||
|
||||
if filter.Search != "" {
|
||||
values.Set("search", filter.Search)
|
||||
}
|
||||
|
||||
path = fmt.Sprintf("%s?%s", path, values.Encode())
|
||||
}
|
||||
|
||||
|
|
1
vendor/github.com/miniflux/miniflux-go/miniflux.go
generated
vendored
1
vendor/github.com/miniflux/miniflux-go/miniflux.go
generated
vendored
|
@ -166,6 +166,7 @@ type Filter struct {
|
|||
After int64
|
||||
BeforeEntryID int64
|
||||
AfterEntryID int64
|
||||
Search string
|
||||
}
|
||||
|
||||
// EntryResultSet represents the response when fetching entries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue