-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
PalB/server/controllers/index.js
Line 34 in 9ded714
| const addPost = (req, res, next) => addPosts(req.body).then(() => res.redirect('/home')).catch((err) => { |
- Here, I see you try to let the user add his own post but, you didn't handle it correctly.
- You can reach to the current user by his id or other user-data that you should send it by cookie , then you can store user post correctly.