summaryrefslogtreecommitdiff
path: root/internal/api/model/filterv1.go
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-11-26 08:23:00 -0800
committerLibravatar GitHub <noreply@github.com>2024-11-26 08:23:00 -0800
commit6a8af426474acd1ffd5cb3265a2372003977326a (patch)
tree9f22c7d3eabc784728da22d60f0ec05ed93ac6ac /internal/api/model/filterv1.go
parent[chore] Sign the bloody thing, fix the other bloody thing (#3572) (diff)
downloadgotosocial-6a8af426474acd1ffd5cb3265a2372003977326a.tar.xz
[bugfix] Allow unsetting filter expiration dates (#3560)
* Regression tests for #3497 (v1 and v2) * use Nullable type for v2 form.expires_in --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/model/filterv1.go')
-rw-r--r--internal/api/model/filterv1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/model/filterv1.go b/internal/api/model/filterv1.go
index 1c3b5fb8e..0b092627e 100644
--- a/internal/api/model/filterv1.go
+++ b/internal/api/model/filterv1.go
@@ -95,5 +95,5 @@ type FilterCreateUpdateRequestV1 struct {
// Number of seconds from now that the filter should expire. If omitted, filter never expires.
//
// Example: 86400
- ExpiresInI interface{} `json:"expires_in"`
+ ExpiresInI Nullable[any] `json:"expires_in"`
}