feat(forums): admin/Moderators and topic owner can edit topic title when click on the title text

#20
This commit is contained in:
OldHawk
2017-12-07 17:47:05 +08:00
parent 7c1c1558dd
commit c38b35b707
11 changed files with 184 additions and 4 deletions

View File

@@ -456,6 +456,7 @@ exports.updateTopic = function (req, res) {
});
}
topic.title = req.body.title;
topic.content = req.body.content;
topic.updatedAt = Date.now();
topic.updatedBy = req.user;