diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 715012df6..3d4a269fc 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -537,7 +537,6 @@ CSS_LENGTH_LIMIT = 20000 # do not make larger than 20000 characters without alte COMMENT_MAX_DEPTH = 200 TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than 10000 characters (comment limit) without altering the table MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js -CHAT_LENGTH_LIMIT = 1000 HOLE_BANNER_LIMIT = 10 BIO_FRIENDS_ENEMIES_LENGTH_LIMIT = 5000 # do not make larger than 5000 characters without altering the table diff --git a/files/routes/chat.py b/files/routes/chat.py index 409eb5844..fd47170db 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -84,7 +84,7 @@ def speak(data, v): f.write(data['file']) image = process_image(name, v) - text = data['message'].strip()[:CHAT_LENGTH_LIMIT] + text = data['message'].strip()[:1000] if image: text += f'\n\n{image}' if not text: return '' diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 868779c8e..8d3474c1c 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -373,7 +373,7 @@ {{gif_btn('input-text-chat')}} {{file_btn('file', False, True)}} - +