summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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