Merge pull request #673 from fooker/master

Allow posting new note with content
This commit is contained in:
Christoph (Sheogorath) Kern
2018-01-20 19:45:41 +01:00
committed by GitHub
3 changed files with 13 additions and 1 deletions

View File

@@ -119,7 +119,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) {