From 3ac388b76502ac6289572b1f803a5ffbeaf218c0 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sun, 26 Apr 2020 22:10:20 +0200 Subject: [PATCH] findNoteOrCreate: Create new note with empty string instead of `null` Signed-off-by: David Mehren --- lib/web/note/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/note/util.ts b/lib/web/note/util.ts index 15fe108b7..78e24ad36 100644 --- a/lib/web/note/util.ts +++ b/lib/web/note/util.ts @@ -22,7 +22,7 @@ export module NoteUtils { } }).then(function (note) { if (!note) { - return newNote(req, res, null) + return newNote(req, res, "") } if (!checkViewPermission(req, note)) { return errors.errorForbidden(res)