mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Max 3000 Character Limit on Chat-Messages (#10494)
* limit chat length to 3000 * add test
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user