summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/accountsettings.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/gtsmodel/accountsettings.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/gtsmodel/accountsettings.go')
-rw-r--r--internal/gtsmodel/accountsettings.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/gtsmodel/accountsettings.go b/internal/gtsmodel/accountsettings.go
index 592a2330d..3151ba5b7 100644
--- a/internal/gtsmodel/accountsettings.go
+++ b/internal/gtsmodel/accountsettings.go
@@ -17,7 +17,9 @@
package gtsmodel
-import "time"
+import (
+ "time"
+)
// AccountSettings models settings / preferences for a local, non-instance account.
type AccountSettings struct {
@@ -32,6 +34,7 @@ type AccountSettings struct {
CustomCSS string `bun:",nullzero"` // Custom CSS that should be displayed for this Account's profile and statuses.
EnableRSS *bool `bun:",nullzero,notnull,default:false"` // enable RSS feed subscription for this account's public posts at [URL]/feed
HideCollections *bool `bun:",nullzero,notnull,default:false"` // Hide this account's followers/following collections.
+ WebVisibility Visibility `bun:",nullzero,notnull,default:public"` // Visibility level of statuses that visitors can view via the web profile.
InteractionPolicyDirect *InteractionPolicy `bun:""` // Interaction policy to use for new direct visibility statuses by this account. If null, assume default policy.
InteractionPolicyMutualsOnly *InteractionPolicy `bun:""` // Interaction policy to use for new mutuals only visibility statuses. If null, assume default policy.
InteractionPolicyFollowersOnly *InteractionPolicy `bun:""` // Interaction policy to use for new followers only visibility statuses. If null, assume default policy.