From e6cde25466e03ec864cd9defed96957e741b5e7c Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Thu, 2 Mar 2023 03:06:40 -0800 Subject: [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 --- web/source/settings/user/settings.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'web/source') 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 }) { }> Learn more about post privacy settings (opens in a new tab) -