summaryrefslogtreecommitdiff
path: root/web/source
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2023-03-02 03:06:40 -0800
committerLibravatar GitHub <noreply@github.com>2023-03-02 12:06:40 +0100
commite6cde25466e03ec864cd9defed96957e741b5e7c (patch)
tree2fe1db6383efc9b788de8bb3f9926627874ccd7c /web/source
parent[chore] move client/federator workerpools to Workers{} (#1575) (diff)
downloadgotosocial-e6cde25466e03ec864cd9defed96957e741b5e7c.tar.xz
[feature] Advertise rich text formats, support content_type field (#1370)
* Advertise rich text formats, support content_type field * Update JSON in instance patch tests * Replace format with content_type everywhere * update migration to work with both pg and sqlite * regenerate swagger docs * update instance serialization + tests * fix up * learn to code tobi please, i'm begging you --------- Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'web/source')
-rw-r--r--web/source/settings/user/settings.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/source/settings/user/settings.js b/web/source/settings/user/settings.js
index 6b6b3c09f..e997beeb6 100644
--- a/web/source/settings/user/settings.js
+++ b/web/source/settings/user/settings.js
@@ -53,14 +53,14 @@ function UserSettingsForm({ data }) {
- string source[privacy]
- bool source[sensitive]
- string source[language]
- - string source[status_format]
+ - string source[status_content_type]
*/
const form = {
defaultPrivacy: useTextInput("source[privacy]", { source: data, defaultValue: "unlisted" }),
isSensitive: useBoolInput("source[sensitive]", { source: data }),
language: useTextInput("source[language]", { source: data, valueSelector: (s) => s.source.language?.toUpperCase() ?? "EN" }),
- format: useTextInput("source[status_format]", { source: data, defaultValue: "plain" }),
+ statusContentType: useTextInput("source[status_content_type]", { source: data, defaultValue: "text/plain" }),
};
const [submitForm, result] = useFormSubmit(form, query.useUpdateCredentialsMutation());
@@ -82,10 +82,10 @@ function UserSettingsForm({ data }) {
}>
<a href="https://docs.gotosocial.org/en/latest/user_guide/posts/#privacy-settings" target="_blank" className="moreinfolink" rel="noreferrer">Learn more about post privacy settings (opens in a new tab)</a>
</Select>
- <Select field={form.format} label="Default post (and bio) format" options={
+ <Select field={form.statusContentType} label="Default post (and bio) format" options={
<>
- <option value="plain">Plain (default)</option>
- <option value="markdown">Markdown</option>
+ <option value="text/plain">Plain (default)</option>
+ <option value="text/markdown">Markdown</option>
</>
}>
<a href="https://docs.gotosocial.org/en/latest/user_guide/posts/#input-types" target="_blank" className="moreinfolink" rel="noreferrer">Learn more about post format settings (opens in a new tab)</a>