summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-22 18:52:17 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-22 18:52:17 -0500
commitf24c16ce90488e4ea2b9208cb63176b5bb8763b2 (patch)
tree6ecc9d210c074c7a902504e40d1942394dde48ab
parentfix endpoint (diff)
downloadxssbook-f24c16ce90488e4ea2b9208cb63176b5bb8763b2.tar.gz
xssbook-f24c16ce90488e4ea2b9208cb63176b5bb8763b2.tar.bz2
xssbook-f24c16ce90488e4ea2b9208cb63176b5bb8763b2.zip
increase post limit
-rw-r--r--src/api.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.js b/src/api.js
index 8091a3c..3e4cb4d 100644
--- a/src/api.js
+++ b/src/api.js
@@ -93,7 +93,7 @@ router.post('/auth/self', (req, res) => {
router.post('/posts/create', (req, res) => {
const content = req.body.content
- if (text(content, 1, 420)) {
+ if (text(content, 1, 1000)) {
res.status(400).send({msg: 'Invalid content'}); return;
}
const cookies = req.cookies;