aboutsummaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
authorGravatar Pontus Jensen Karlsson <pontus@jensenkarlsson.se> 2024-08-08 04:46:09 +0000
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-08-12 20:20:44 -0700
commit6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0 (patch)
tree0785d15a81daf0851753c71109b162bc55e01928 /client/client.go
parent770cc1dbb387af580b9ceba1cba9fda69e4444ed (diff)
downloadv2-6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0.tar.gz
v2-6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0.tar.zst
v2-6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0.zip
feat: API: Allow filtering entries on globally_hidden
Currently there's no way through the API to mimic the Unread page of the client. This is now possible by filtering on globally_visible=true and status=unread.
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go
index 9b92b33b..2840c4e0 100644
--- a/client/client.go
+++ b/client/client.go
@@ -685,6 +685,10 @@ func buildFilterQueryString(path string, filter *Filter) string {
values.Set("feed_id", strconv.FormatInt(filter.FeedID, 10))
}
+ if filter.GloballyVisible {
+ values.Set("globally_visible", "true")
+ }
+
for _, status := range filter.Statuses {
values.Add("status", status)
}