diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-23 21:45:32 -0500 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2023-01-23 21:45:32 -0500 |
commit | 7391e75fba3a38fef277389b313d101293218a35 (patch) | |
tree | 5c51d6090a411d07fbd93d69e5652b762ff906c4 | |
parent | i changed a lot of shit (diff) | |
download | xssbook-7391e75fba3a38fef277389b313d101293218a35.tar.gz xssbook-7391e75fba3a38fef277389b313d101293218a35.tar.bz2 xssbook-7391e75fba3a38fef277389b313d101293218a35.zip |
im stupid
-rw-r--r-- | src/api/posts.js | 2 |
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 |