diff options
author | 2024-09-09 18:07:25 +0200 | |
---|---|---|
committer | 2024-09-09 18:07:25 +0200 | |
commit | 5543fd53400037dc8ae22d4919b7085c46177ce1 (patch) | |
tree | 9f4b9df4a65165e32888ac038a7c5f6f0724233d /internal/gtsmodel/status.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/gtsmodel/status.go')
-rw-r--r-- | internal/gtsmodel/status.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/gtsmodel/status.go b/internal/gtsmodel/status.go index 70fd9c367..9ebbc18c7 100644 --- a/internal/gtsmodel/status.go +++ b/internal/gtsmodel/status.go @@ -238,6 +238,9 @@ type StatusToEmoji struct { type Visibility string const ( + // VisibilityNone means nobody can see this. + // It's only used for web status visibility. + VisibilityNone Visibility = "none" // VisibilityPublic means this status will be visible to everyone on all timelines. VisibilityPublic Visibility = "public" // VisibilityUnlocked means this status will be visible to everyone, but will only show on home timeline to followers, and in lists. |