1
0
Fork 0
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:
Frédéric Guillot 2018-07-07 12:02:59 -07:00
parent ca30800e6a
commit 364198ba4a
4 changed files with 32 additions and 1 deletions

View file

@ -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())
}

View file

@ -166,6 +166,7 @@ type Filter struct {
After int64
BeforeEntryID int64
AfterEntryID int64
Search string
}
// EntryResultSet represents the response when fetching entries.