Unreact to comments
This commit is contained in:
@@ -218,6 +218,16 @@ DB.getDB.then((DB) => {
|
||||
})
|
||||
});
|
||||
|
||||
router.post("/comment/unreact", async (req, res) => {
|
||||
let profileid = getProfileId(req);
|
||||
let postid = req.body.postid;
|
||||
let commentDate = new Date(req.body.commentDate);
|
||||
r = await DB.removeCommentReaction(postid, commentDate, profileid);
|
||||
return res.json({
|
||||
status: "ok"
|
||||
})
|
||||
});
|
||||
|
||||
router.get("/:id", async (req, res) => {
|
||||
const postId = req.params.id;
|
||||
const post = await DB.getPost(postId);
|
||||
|
||||
Reference in New Issue
Block a user