Remove and replace all note id compression in LZString with base64url
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
@@ -5,7 +5,6 @@ var cookie = require('cookie')
|
||||
var cookieParser = require('cookie-parser')
|
||||
var url = require('url')
|
||||
var async = require('async')
|
||||
var LZString = require('lz-string')
|
||||
var randomcolor = require('randomcolor')
|
||||
var Chance = require('chance')
|
||||
var chance = new Chance()
|
||||
@@ -703,7 +702,7 @@ function operationCallback (socket, operation) {
|
||||
}
|
||||
|
||||
function updateHistory (userId, note, time) {
|
||||
var noteId = note.alias ? note.alias : LZString.compressToBase64(note.id)
|
||||
var noteId = note.alias ? note.alias : models.Note.encodeNoteId(note.id)
|
||||
if (note.server) history.updateHistory(userId, noteId, note.server.document, time)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user