Max 3000 Character Limit on Chat-Messages (#10494)

* limit chat length to 3000

* add test
This commit is contained in:
negue
2018-07-12 22:40:04 +02:00
committed by Sabe Jones
parent 2946f0df15
commit f6b34e85df
3 changed files with 26 additions and 2 deletions

View File

@@ -478,7 +478,7 @@ export function chatDefaults (msg, user) {
const message = {
id,
_id: id,
text: msg,
text: msg.substring(0, 3000),
timestamp: Number(new Date()),
likes: {},
flags: {},