From 0fa6442846a244e0c23f32c1aec6c59f7637e2ee Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 14 Aug 2022 04:38:07 +0200 Subject: [PATCH] change chat char limit again --- files/routes/chat.py | 5 ++++- files/templates/chat.html | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index a25fff18a..565c478e2 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -47,7 +47,10 @@ def speak(data, v): else: del muted[vname] global messages, total - text = data[:200].strip() + + if SITE == 'rdrama.net': text = data[:200].strip() + else: text = data[:1000].strip() + if not text: return '', 403 text_html = sanitize(text) diff --git a/files/templates/chat.html b/files/templates/chat.html index bc31b516a..c739c028d 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -184,7 +184,7 @@ - +