From 5766bbfc65e3f6663737da5d15359d68e3f991ff Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Mon, 24 Aug 2015 20:47:27 -0700 Subject: Prevents users from typing more than 4000 characters into any 'textbox' (posts, comments, and post/comment edits). Also adds new error message for when users hit exactly 4000 characters so they know the limit. --- web/react/utils/constants.jsx | 1 + 1 file changed, 1 insertion(+) (limited to 'web/react/utils/constants.jsx') diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx index 8239a4a69..82fc3da22 100644 --- a/web/react/utils/constants.jsx +++ b/web/react/utils/constants.jsx @@ -92,6 +92,7 @@ module.exports = { ], MONTHS: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], MAX_DMS: 20, + MAX_POST_LEN: 4000, ONLINE_ICON_SVG: "", OFFLINE_ICON_SVG: "", MENU_ICON: " ", -- cgit v1.2.3-1-g7c22