aboutsummaryrefslogtreecommitdiff
path: root/client/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.go')
-rw-r--r--client/client.go24
1 files changed, 20 insertions, 4 deletions
diff --git a/client/client.go b/client/client.go
index 18964459..bac7bdf1 100644
--- a/client/client.go
+++ b/client/client.go
@@ -540,14 +540,30 @@ func buildFilterQueryString(path string, filter *Filter) string {
values.Set("after", strconv.FormatInt(filter.After, 10))
}
- if filter.AfterEntryID > 0 {
- values.Set("after_entry_id", strconv.FormatInt(filter.AfterEntryID, 10))
- }
-
if filter.Before > 0 {
values.Set("before", strconv.FormatInt(filter.Before, 10))
}
+ if filter.PublishedAfter > 0 {
+ values.Set("published_after", strconv.FormatInt(filter.PublishedAfter, 10))
+ }
+
+ if filter.PublishedBefore > 0 {
+ values.Set("published_before", strconv.FormatInt(filter.PublishedBefore, 10))
+ }
+
+ if filter.ChangedAfter > 0 {
+ values.Set("changed_after", strconv.FormatInt(filter.ChangedAfter, 10))
+ }
+
+ if filter.ChangedBefore > 0 {
+ values.Set("changed_before", strconv.FormatInt(filter.ChangedBefore, 10))
+ }
+
+ if filter.AfterEntryID > 0 {
+ values.Set("after_entry_id", strconv.FormatInt(filter.AfterEntryID, 10))
+ }
+
if filter.BeforeEntryID > 0 {
values.Set("before_entry_id", strconv.FormatInt(filter.BeforeEntryID, 10))
}