From 56eb1da0f5a794f0aa6cfb640d60e78252d4cb75 Mon Sep 17 00:00:00 2001 From: prplecake Date: Tue, 1 Nov 2022 12:06:07 -0500 Subject: [PATCH] Fix CharacterCount in vanilla UI (#1883) --- app/javascript/mastodon/initial_state.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/mastodon/initial_state.js b/app/javascript/mastodon/initial_state.js index bb05dafdf..a8a9de34d 100644 --- a/app/javascript/mastodon/initial_state.js +++ b/app/javascript/mastodon/initial_state.js @@ -129,4 +129,7 @@ export const version = getMeta('version'); export const translationEnabled = getMeta('translation_enabled'); export const languages = initialState?.languages; +// Glitch-soc-specific settings +export const maxChars = (initialState && initialState.max_toot_chars) || 500; + export default initialState;