Use server-provided poll limits instead of hardcoded ones

Also does not enable polls if no limits are provided by the server
This commit is contained in:
Thibaut Girka
2019-03-06 13:42:48 +01:00
committed by ThibG
parent 3b1390dc78
commit 235be596bc
3 changed files with 20 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ 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 pollLimits = (initialState && initialState.poll_limits);
export const invitesEnabled = getMeta('invites_enabled');
export const version = getMeta('version');
export const mascot = getMeta('mascot');