diff --git a/lib/note/index.js b/lib/note/index.js index badf69d7..7f215149 100644 --- a/lib/note/index.js +++ b/lib/note/index.js @@ -292,15 +292,15 @@ const updateNote = async (req, res) => { title: Note.parseNoteTitle(content), content: content, lastchangeAt: now, - authorship: req.isAuthenticated() ? [ + authorship: [ [ - req.user.id, + req.isAuthenticated() ? req.user.id : null, 0, content.length, now, now ] - ] : [] + ] }) if (!updated) {