diff options
Diffstat (limited to 'lib/models/note.js')
-rw-r--r-- | lib/models/note.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/note.js b/lib/models/note.js index ace072a3..a442f889 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -223,7 +223,9 @@ module.exports = function (sequelize, DataTypes) { body = fs.readFileSync(filePath, 'utf8'); note.title = LZString.compressToBase64(Note.parseNoteTitle(body)); note.content = LZString.compressToBase64(body); - note.createdAt = fsCreatedTime; + if (filePath !== config.defaultnotepath) { + note.createdAt = fsCreatedTime; + } } } // if no permission specified and have owner then give editable permission, else default permission is freely |