summaryrefslogtreecommitdiff
path: root/web/source
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 /web/source
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 'web/source')
-rw-r--r--web/source/settings/views/user/profile.tsx20
1 files changed, 16 insertions, 4 deletions
diff --git a/web/source/settings/views/user/profile.tsx b/web/source/settings/views/user/profile.tsx
index 18c96e869..4e5fb627f 100644
--- a/web/source/settings/views/user/profile.tsx
+++ b/web/source/settings/views/user/profile.tsx
@@ -115,6 +115,7 @@ function UserProfileForm({ data: profile }) {
discoverable: useBoolInput("discoverable", { source: profile}),
enableRSS: useBoolInput("enable_rss", { source: profile }),
hideCollections: useBoolInput("hide_collections", { source: profile }),
+ webVisibility: useTextInput("web_visibility", { source: profile, valueSelector: (p) => p.source?.web_visibility }),
fields: useFieldArrayInput("fields_attributes", {
defaultValue: profile?.source?.fields,
length: instanceConfig.maxPinnedFields
@@ -233,21 +234,32 @@ function UserProfileForm({ data: profile }) {
Learn more about these settings (opens in a new tab)
</a>
</div>
+ <Select
+ field={form.webVisibility}
+ label="Visibility level of posts to show on your profile, and in your RSS feed (if enabled)."
+ options={
+ <>
+ <option value="public">Show Public posts only (the GoToSocial default)</option>
+ <option value="unlisted">Show Public and Unlisted posts (the Mastodon default)</option>
+ <option value="none">Show no posts</option>
+ </>
+ }
+ />
<Checkbox
field={form.locked}
- label="Manually approve follow requests"
+ label="Manually approve follow requests."
/>
<Checkbox
field={form.discoverable}
- label="Mark account as discoverable by search engines and directories"
+ label="Mark account as discoverable by search engines and directories."
/>
<Checkbox
field={form.enableRSS}
- label="Enable RSS feed of Public posts"
+ label="Enable RSS feed of posts."
/>
<Checkbox
field={form.hideCollections}
- label="Hide who you follow / are followed by"
+ label="Hide who you follow / are followed by."
/>
<div className="form-section-docs">