diff options
author | 2024-09-09 18:07:25 +0200 | |
---|---|---|
committer | 2024-09-09 18:07:25 +0200 | |
commit | 5543fd53400037dc8ae22d4919b7085c46177ce1 (patch) | |
tree | 9f4b9df4a65165e32888ac038a7c5f6f0724233d /internal/api/client/accounts/accountupdate.go | |
parent | [chore]: Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#3283) (diff) | |
download | gotosocial-5543fd53400037dc8ae22d4919b7085c46177ce1.tar.xz |
[feature/frontend] Add options to include Unlisted posts or hide all posts (#3272)
* [feature/frontend] Add options to include Unlisted posts or hide all posts
* finish up
* swagger
* move invalidate call into bundb package, avoid invalidating if not necessary
* rename show_web_statuses => web_visibility
* don't use ptr for webvisibility
* last bits
Diffstat (limited to 'internal/api/client/accounts/accountupdate.go')
-rw-r--r-- | internal/api/client/accounts/accountupdate.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/internal/api/client/accounts/accountupdate.go b/internal/api/client/accounts/accountupdate.go index f81f54db0..5d3a3da5f 100644 --- a/internal/api/client/accounts/accountupdate.go +++ b/internal/api/client/accounts/accountupdate.go @@ -145,6 +145,15 @@ import ( // description: Hide the account's following/followers collections. // type: boolean // - +// name: web_visibility +// in: formData +// description: |- +// Posts to show on the web view of the account. +// "public": default, show only Public visibility posts on the web. +// "unlisted": show Public *and* Unlisted visibility posts on the web. +// "none": show no posts on the web, not even Public ones. +// type: string +// - // name: fields_attributes[0][name] // in: formData // description: Name of 1st profile field to be added to this account's profile. @@ -339,7 +348,8 @@ func parseUpdateAccountForm(c *gin.Context) (*apimodel.UpdateCredentialsRequest, form.Theme == nil && form.CustomCSS == nil && form.EnableRSS == nil && - form.HideCollections == nil) { + form.HideCollections == nil && + form.WebVisibility == nil) { return nil, errors.New("empty form submitted") } |