Handle character limit in initial state in frontend.

This commit is contained in:
Lain Iwakura 2017-11-14 16:24:10 +01:00 committed by Haelwenn (lanodan) Monnier
parent 09f52338a7
commit 7719295a07
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -12,7 +12,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 = (initialState && initialState.max_toot_chars) || 500;
export const maxChars = getMeta('max_toot_chars') || getMeta('char_limit') || 5000;
export const invitesEnabled = getMeta('invites_enabled');
export const version = getMeta('version');
export const mascot = getMeta('mascot');