From 4c0094a1f8542b37b97d8a5f5cee67911f955aba Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 28 Apr 2020 00:52:00 +0200 Subject: findNoteOrCreate: Create new note with empty string instead of `null` Backport of #345 to 1.x Signed-off-by: Sandro Jäckel --- lib/web/note/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/web/note/util.js') 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) -- cgit v1.2.3