summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorSheogorath2020-04-28 18:40:39 +0200
committerGitHub2020-04-28 18:40:39 +0200
commitb79341f406bdeabc1ab2d7830e20ca3bea4617d9 (patch)
tree0d39297604b18bb2b51413ec77e3e82fa16ff5ca /lib/web
parent68174c0c6fa6ed9820633176d77b26719d84938b (diff)
parent4c0094a1f8542b37b97d8a5f5cee67911f955aba (diff)
Merge pull request #347 from codimd/backport-345
findNoteOrCreate: Create new note with empty string instead of `null`
Diffstat (limited to 'lib/web')
-rw-r--r--lib/web/note/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/note/util.js b/lib/web/note/util.js
index ce3f0d6d..c5affd05 100644
--- a/lib/web/note/util.js
+++ b/lib/web/note/util.js
@@ -19,7 +19,7 @@ exports.findNote = function (req, res, callback, include) {
include: include || null
}).then(function (note) {
if (!note) {
- return exports.newNote(req, res, null)
+ return exports.newNote(req, res, '')
}
if (!exports.checkViewPermission(req, note)) {
return errors.errorForbidden(res)