diff options
author | Sandro | 2020-04-28 00:52:00 +0200 |
---|---|---|
committer | Sandro Jäckel | 2020-04-28 00:56:35 +0200 |
commit | 4c0094a1f8542b37b97d8a5f5cee67911f955aba (patch) | |
tree | 0d39297604b18bb2b51413ec77e3e82fa16ff5ca /lib | |
parent | 68174c0c6fa6ed9820633176d77b26719d84938b (diff) |
findNoteOrCreate: Create new note with empty string instead of `null`
Backport of #345 to 1.x
Signed-off-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/web/note/util.js | 2 |
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) |