increase max special characters
This commit is contained in:
parent
c6db7b86e7
commit
6cfbe1418f
@ -57,7 +57,7 @@ module.exports = {
|
||||
|
||||
req.body.message = encodeURIComponent(req.body.message.trim())
|
||||
|
||||
if(req.body.message.length > 1000) {
|
||||
if(req.body.message.length > 3000) {
|
||||
res.json({"error":"message too long"}) //check again after URI encoding it
|
||||
return
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ module.exports = {
|
||||
|
||||
req.body.message = encodeURIComponent(req.body.message.trim())
|
||||
|
||||
if(req.body.message.length > 1000) {
|
||||
if(req.body.message.length > 3000) {
|
||||
res.json({"error":"message too long"}) //check again after URI encoding it
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user