Skip to content

Commit

Permalink
Better update of the authorship of anonymous users
Browse files Browse the repository at this point in the history
Co-authored-by: Yukai Huang <yukaihuangtw@gmail.com>
Signed-off-by: Giuseppe Lo Presti <giuseppe.lopresti@cern.ch>
  • Loading branch information
glpatcern and Yukaii committed Mar 18, 2021
1 parent c9399f3 commit 44b6106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/note/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const updateNote = async (req, res) => {
lastchangeAt: now,
authorship: req.isAuthenticated() ? [
[
req.user.id,
req.isAuthenticated() ? req.user.id : null,
0,
content.length,
now,
Expand Down

0 comments on commit 44b6106

Please sign in to comment.