diff options
Diffstat (limited to '')
-rw-r--r-- | lib/response.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js index 6c64d245..1c04f9f6 100644 --- a/lib/response.js +++ b/lib/response.js @@ -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) { |