mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Refactor server with Sequelize ORM, refactor server configs, now will show note status (created or updated) and support docs (note alias)
This commit is contained in:
parent
e613aeba75
commit
49b51e478f
35 changed files with 1877 additions and 2120 deletions
|
@ -93,8 +93,14 @@ function clearDuplicatedHistory(notehistory) {
|
|||
for (var i = 0; i < notehistory.length; i++) {
|
||||
var found = false;
|
||||
for (var j = 0; j < newnotehistory.length; j++) {
|
||||
var id = LZString.decompressFromBase64(notehistory[i].id);
|
||||
var newId = LZString.decompressFromBase64(newnotehistory[j].id);
|
||||
var id = notehistory[i].id;
|
||||
var newId = newnotehistory[j].id;
|
||||
try {
|
||||
id = LZString.decompressFromBase64(id);
|
||||
newId = LZString.decompressFromBase64(newId);
|
||||
} catch (err) {
|
||||
// na
|
||||
}
|
||||
if (id == newId || notehistory[i].id == newnotehistory[j].id || !notehistory[i].id || !newnotehistory[j].id) {
|
||||
var time = moment(notehistory[i].time, 'MMMM Do YYYY, h:mm:ss a');
|
||||
var newTime = moment(newnotehistory[j].time, 'MMMM Do YYYY, h:mm:ss a');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue