From 2eed4ace1147d08d29bf9fdd9692afb2871e1fd9 Mon Sep 17 00:00:00 2001 From: David Yip Date: Sat, 6 Jan 2018 03:01:11 -0600 Subject: [PATCH] Read max_toot_chars from root object. Fixes #297. max_toot_chars is present in the root of the initial state object. (Previously, we were trying to read it from the meta child object.) --- app/javascript/flavours/glitch/util/initial_state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/util/initial_state.js b/app/javascript/flavours/glitch/util/initial_state.js index 530bca7ef6c..212135fceb7 100644 --- a/app/javascript/flavours/glitch/util/initial_state.js +++ b/app/javascript/flavours/glitch/util/initial_state.js @@ -18,6 +18,6 @@ export const boostModal = getMeta('boost_modal'); export const favouriteModal = getMeta('favourite_modal'); export const deleteModal = getMeta('delete_modal'); export const me = getMeta('me'); -export const maxChars = getMeta('max_toot_chars') || 500; +export const maxChars = initialState['max_toot_chars'] || 500; export default initialState;