Allow posting new note with content

Signed-off-by: Dustin Frisch <fooker@lab.sh>
This commit is contained in:
Dustin Frisch
2018-01-11 00:51:22 +01:00
parent a8fa888317
commit f47601857e
3 changed files with 13 additions and 1 deletions

View File

@@ -117,7 +117,8 @@ function newNote (req, res, next) {
}
models.Note.create({
ownerId: owner,
alias: req.alias ? req.alias : null
alias: req.alias ? req.alias : null,
content: req.body ? req.body : ''
}).then(function (note) {
return res.redirect(config.serverurl + '/' + LZString.compressToBase64(note.id))
}).catch(function (err) {