diff options
author | 2024-08-08 04:46:09 +0000 | |
---|---|---|
committer | 2024-08-12 20:20:44 -0700 | |
commit | 6fb7e84ce1bb38b386a6f6effd1bb3b09d2b72e0 (patch) | |
tree | 0785d15a81daf0851753c71109b162bc55e01928 /client/client.go | |
parent | 770cc1dbb387af580b9ceba1cba9fda69e4444ed (diff) | |
download | v2-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.go | 4 |
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) } |