diff --git a/lib/web/note/util.js b/lib/web/note/util.js index f1af13007..9c6c1c8a3 100644 --- a/lib/web/note/util.js +++ b/lib/web/note/util.js @@ -59,7 +59,8 @@ exports.newNote = function (req, res, body) { models.Note.create({ ownerId: owner, alias: req.alias ? req.alias : null, - content: body + content: body, + title: models.Note.parseNoteTitle(body) }).then(function (note) { return res.redirect(config.serverURL + '/' + (note.alias ? note.alias : models.Note.encodeNoteId(note.id))) }).catch(function (err) {