diff options
author | David Yip <yipdw@member.fsf.org> | 2018-01-06 03:01:11 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-06 03:01:11 -0600 |
commit | 2eed4ace1147d08d29bf9fdd9692afb2871e1fd9 (patch) | |
tree | 5337c170ae3a6cb5045a59559dfddba116085d3a /app/javascript/flavours/glitch/util | |
parent | 6932b464e6952a9d29787a140a026dce724bfb59 (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/util')
-rw-r--r-- | app/javascript/flavours/glitch/util/initial_state.js | 2 |
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; |