summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2023-01-23 21:45:32 -0500
committerTyler Murphy <tylermurphy534@gmail.com>2023-01-23 21:45:32 -0500
commit7391e75fba3a38fef277389b313d101293218a35 (patch)
tree5c51d6090a411d07fbd93d69e5652b762ff906c4
parenti changed a lot of shit (diff)
downloadxssbook-7391e75fba3a38fef277389b313d101293218a35.tar.gz
xssbook-7391e75fba3a38fef277389b313d101293218a35.tar.bz2
xssbook-7391e75fba3a38fef277389b313d101293218a35.zip
im stupid
-rw-r--r--src/api/posts.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/posts.js b/src/api/posts.js
index 974e4c4..1989d39 100644
--- a/src/api/posts.js
+++ b/src/api/posts.js
@@ -11,7 +11,7 @@ router.post('/create', (req, res) => {
])
if (body === undefined) return
- const id = cache.addPost(res.locals.user.id, content)
+ const id = cache.addPost(res.locals.user.id, body.content)
if (id === -1) {
res.status(500).send({msg: 'Failed to create post'})
return