We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9399f3 commit dc37e5dCopy full SHA for dc37e5d
lib/note/index.js
@@ -292,15 +292,15 @@ const updateNote = async (req, res) => {
292
title: Note.parseNoteTitle(content),
293
content: content,
294
lastchangeAt: now,
295
- authorship: req.isAuthenticated() ? [
+ authorship: [
296
[
297
- req.user.id,
+ req.isAuthenticated() ? req.user.id : null,
298
0,
299
content.length,
300
now,
301
now
302
]
303
- ] : []
+ ]
304
})
305
306
if (!updated) {
0 commit comments