about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-09-23 11:22:51 +0200
committerThibG <thib@sitedethib.com>2018-09-28 17:05:19 +0200
commitabffbba819bf776796f28a071d48a24f2808ffd9 (patch)
treeedd1069d1579a2884ff979ceda65750c226feb24 /app/javascript
parent3b05eb800245ef5785a5ac1d018b86d324b48c45 (diff)
Fix maxCharacters in vanilla front-end
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/initial_state.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/initial_state.js b/app/javascript/mastodon/initial_state.js
index 8751a5636..4c6922f9b 100644
--- a/app/javascript/mastodon/initial_state.js
+++ b/app/javascript/mastodon/initial_state.js
@@ -11,7 +11,7 @@ export const boostModal = getMeta('boost_modal');
 export const deleteModal = getMeta('delete_modal');
 export const me = getMeta('me');
 export const searchEnabled = getMeta('search_enabled');
-export const maxChars = getMeta('max_toot_chars') || 500;
+export const maxChars = (initialState && initialState.max_toot_chars) || 500;
 export const invitesEnabled = getMeta('invites_enabled');
 export const version = getMeta('version');