diff options
author | 2024-09-09 00:52:49 -0700 | |
---|---|---|
committer | 2024-09-09 09:52:49 +0200 | |
commit | 100d660797762ad00c07d757dac930a5f8b5f7ff (patch) | |
tree | c8a0d180b22a1a72676604b104f38ae31c58cde8 | |
parent | [chore]: Bump golang.org/x/image from 0.19.0 to 0.20.0 (#3285) (diff) | |
download | gotosocial-100d660797762ad00c07d757dac930a5f8b5f7ff.tar.xz |
[bugfix] Swagger: add missing filter_action param for v2 filter PUT (#3281)
-rw-r--r-- | docs/api/swagger.yaml | 10 | ||||
-rw-r--r-- | internal/api/client/filters/v2/filterput.go | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml index 73ff22683..8d11ba7da 100644 --- a/docs/api/swagger.yaml +++ b/docs/api/swagger.yaml @@ -10462,6 +10462,16 @@ paths: in: formData name: expires_in type: number + - description: |- + The action to be taken when a status matches this filter. + + Sample: warn + enum: + - warn + - hide + in: formData + name: filter_action + type: string produces: - application/json responses: diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go index c86dc36dc..24f7e7567 100644 --- a/internal/api/client/filters/v2/filterput.go +++ b/internal/api/client/filters/v2/filterput.go @@ -121,6 +121,17 @@ import ( // // Sample: 86400 // type: number +// - +// name: filter_action +// in: formData +// description: |- +// The action to be taken when a status matches this filter. +// +// Sample: warn +// type: string +// enum: +// - warn +// - hide // // security: // - OAuth2 Bearer: |