From a8c6ca9ab184c339a5b57612ef7903010d865336 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 20 Mar 2022 01:04:23 +0200 Subject: [PATCH] fds --- files/routes/chat.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index 4174b9da7..831ee5767 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -18,12 +18,10 @@ def chat( v): @auth_required def speak(data, v): - text = sanitize(data['text'][:1000].strip()) - data={ "avatar": v.profile_url, "username":v.username, - "text":text, + "text":sanitize(data[:1000].strip()), "time": time.strftime("%d %b %Y at %H:%M:%S", time.gmtime(int(time.time()))), "userlink":v.url }