diff options
| author | 2025-11-12 12:51:39 +0100 | |
|---|---|---|
| committer | 2025-11-17 14:15:18 +0100 | |
| commit | a87b70eedc053b17cf2170beee0fad28b1eab448 (patch) | |
| tree | e2c2a375f614df73701634b9849f17326976b78f /internal | |
| parent | [bugfix] update go-mmap to macOS-compatible version (#4550) (diff) | |
| download | gotosocial-a87b70eedc053b17cf2170beee0fad28b1eab448.tar.xz | |
[bugfix] Add Swagger docs for blur filter action (#4551)
- Introduced by #4371
- Fixes #4445
@mkljczk: first off, thanks for adding blur filter support! Second, when updating the client API, please update the Swagger doc comments as well. Let me know if you have questions about the Swagger gunk in the future; I use it to generate the API client for `slurp` so I've touched it a bunch.
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4551
Co-authored-by: Vyr Cossont <vyr@noreply.codeberg.org>
Co-committed-by: Vyr Cossont <vyr@noreply.codeberg.org>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/api/client/filters/v2/filterpost.go | 1 | ||||
| -rw-r--r-- | internal/api/client/filters/v2/filterput.go | 1 | ||||
| -rw-r--r-- | internal/api/model/filterv2.go | 1 | ||||
| -rw-r--r-- | internal/gtsmodel/filter.go | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/internal/api/client/filters/v2/filterpost.go b/internal/api/client/filters/v2/filterpost.go index 7cb11da92..12e7f5500 100644 --- a/internal/api/client/filters/v2/filterpost.go +++ b/internal/api/client/filters/v2/filterpost.go @@ -96,6 +96,7 @@ import ( // enum: // - warn // - hide +// - blur // default: warn // - // name: keywords_attributes[][keyword] diff --git a/internal/api/client/filters/v2/filterput.go b/internal/api/client/filters/v2/filterput.go index 4538fa3bf..9f9591ec4 100644 --- a/internal/api/client/filters/v2/filterput.go +++ b/internal/api/client/filters/v2/filterput.go @@ -129,6 +129,7 @@ import ( // enum: // - warn // - hide +// - blur // // security: // - OAuth2 Bearer: diff --git a/internal/api/model/filterv2.go b/internal/api/model/filterv2.go index 98a83fc74..5317ec88a 100644 --- a/internal/api/model/filterv2.go +++ b/internal/api/model/filterv2.go @@ -52,6 +52,7 @@ type FilterV2 struct { // Enum: // - warn // - hide + // - blur FilterAction FilterAction `json:"filter_action"` // The keywords grouped under this filter. Keywords []FilterKeyword `json:"keywords"` diff --git a/internal/gtsmodel/filter.go b/internal/gtsmodel/filter.go index 522456b39..8f1a45004 100644 --- a/internal/gtsmodel/filter.go +++ b/internal/gtsmodel/filter.go @@ -206,7 +206,7 @@ const ( // be removed from timeline results entirely. FilterActionHide FilterAction = 2 - // FilterActionWarn means that the status should + // FilterActionBlur means that the status should // be shown with its media attachments hidden/blurred. FilterActionBlur FilterAction = 3 ) |
