diff options
author | 2024-07-24 10:40:56 +0200 | |
---|---|---|
committer | 2024-07-24 10:40:56 +0200 | |
commit | 325b4a2b4a1dc2fba6a72f0a10dc88b98f57f05c (patch) | |
tree | 8f3c8cdec61a901418c8d729c3a0641a6bda158b /web/source/settings/views/user/profile.tsx | |
parent | [bugfix] Serialize empty conversation account list as empty list, not null (#... (diff) | |
download | gotosocial-325b4a2b4a1dc2fba6a72f0a10dc88b98f57f05c.tar.xz |
[feature] Allow user to set "bot" flag; show bot icon on profile (#3135)
* [feature] Allow user to set "bot" flag; show bot icon on profile
* tweak
* update customs
Diffstat (limited to 'web/source/settings/views/user/profile.tsx')
-rw-r--r-- | web/source/settings/views/user/profile.tsx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/web/source/settings/views/user/profile.tsx b/web/source/settings/views/user/profile.tsx index f4088b353..6d476f80f 100644 --- a/web/source/settings/views/user/profile.tsx +++ b/web/source/settings/views/user/profile.tsx @@ -130,6 +130,7 @@ function UserProfileForm({ data: profile }) { avatar={form.avatar.previewValue ?? profile.avatar} header={form.header.previewValue ?? profile.header} display_name={form.displayName.value ?? profile.username} + bot={profile.bot} username={profile.username} role={profile.role} /> @@ -186,6 +187,10 @@ function UserProfileForm({ data: profile }) { Learn more about these settings (opens in a new tab) </a> </div> + <Checkbox + field={form.bot} + label="Mark as bot account; this indicates to other users that this is an automated account" + /> <TextInput field={form.displayName} label="Display name" @@ -200,10 +205,12 @@ function UserProfileForm({ data: profile }) { autoCapitalize="sentences" rows={8} /> - <b>Profile fields</b> - <ProfileFields - field={form.fields} - /> + <fieldset> + <legend>Profile fields</legend> + <ProfileFields + field={form.fields} + /> + </fieldset> <div className="form-section-docs"> <h3>Visibility and privacy</h3> |