From f47601857e9774731d5997f5c3b3256cf8bb623b Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Thu, 11 Jan 2018 00:51:22 +0100 Subject: Allow posting new note with content Signed-off-by: Dustin Frisch --- lib/response.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/response.js') diff --git a/lib/response.js b/lib/response.js index 9f3d5a44..2e8924b7 100644 --- a/lib/response.js +++ b/lib/response.js @@ -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) { -- cgit v1.2.3