about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2018-01-06 03:01:11 -0600
committerDavid Yip <yipdw@member.fsf.org>2018-01-06 03:01:11 -0600
commit2eed4ace1147d08d29bf9fdd9692afb2871e1fd9 (patch)
tree5337c170ae3a6cb5045a59559dfddba116085d3a /app/javascript/flavours/glitch
parent6932b464e6952a9d29787a140a026dce724bfb59 (diff)
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.)
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/util/initial_state.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/initial_state.js b/app/javascript/flavours/glitch/util/initial_state.js
index 530bca7ef..212135fce 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;