summaryrefslogtreecommitdiff
path: root/internal/api/model/source.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-09-09 18:07:25 +0200
committerLibravatar GitHub <noreply@github.com>2024-09-09 18:07:25 +0200
commit5543fd53400037dc8ae22d4919b7085c46177ce1 (patch)
tree9f4b9df4a65165e32888ac038a7c5f6f0724233d /internal/api/model/source.go
parent[chore]: Bump golang.org/x/crypto from 0.26.0 to 0.27.0 (#3283) (diff)
downloadgotosocial-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/model/source.go')
-rw-r--r--internal/api/model/source.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/api/model/source.go b/internal/api/model/source.go
index 3b57f8565..cc3eb78ee 100644
--- a/internal/api/model/source.go
+++ b/internal/api/model/source.go
@@ -26,6 +26,11 @@ type Source struct {
// private = Followers-only post
// direct = Direct post
Privacy Visibility `json:"privacy"`
+ // Visibility level(s) of posts to show for this account via the web api.
+ // "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.
+ WebVisibility Visibility `json:"web_visibility"`
// Whether new statuses should be marked sensitive by default.
Sensitive bool `json:"sensitive"`
// The default posting language for new statuses.