diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/source/settings/user/profile.tsx | 6 | ||||
| -rw-r--r-- | web/template/profile.tmpl | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/web/source/settings/user/profile.tsx b/web/source/settings/user/profile.tsx index cd4b17227..c5fb67376 100644 --- a/web/source/settings/user/profile.tsx +++ b/web/source/settings/user/profile.tsx @@ -65,6 +65,7 @@ function UserProfileForm({ data: profile }) { - file avatar - file header - bool enable_rss + - bool hide_collections - string custom_css (if enabled) - string theme */ @@ -98,6 +99,7 @@ function UserProfileForm({ data: profile }) { locked: useBoolInput("locked", { source: profile }), discoverable: useBoolInput("discoverable", { source: profile}), enableRSS: useBoolInput("enable_rss", { source: profile }), + hideCollections: useBoolInput("hide_collections", { source: profile }), fields: useFieldArrayInput("fields_attributes", { defaultValue: profile?.source?.fields, length: instanceConfig.maxPinnedFields @@ -208,6 +210,10 @@ function UserProfileForm({ data: profile }) { field={form.enableRSS} label="Enable RSS feed of Public posts" /> + <Checkbox + field={form.hideCollections} + label="Hide who you follow / are followed by" + /> <div className="form-section-docs"> <h3>Advanced</h3> diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index b6ef056f0..f0467e004 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -98,9 +98,9 @@ <dt>Posts</dt> <dd>{{- .account.StatusesCount -}}</dd> <dt>Followed by</dt> - <dd>{{- .account.FollowersCount -}}</dd> + <dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowersCount -}}{{- end -}}</dd> <dt>Following</dt> - <dd>{{- .account.FollowingCount -}}</dd> + <dd>{{- if .account.HideCollections -}}<i>hidden</i>{{- else -}}{{- .account.FollowingCount -}}{{- end -}}</dd> </dl> </section> <div class="statuses-wrapper" role="region" aria-label="Posts by {{ .account.Username -}}"> |
