From baa0418fb54fb8f158267f8e8b5f248232dc0a8f Mon Sep 17 00:00:00 2001 From: Max Wu Date: Mon, 26 Feb 2018 16:43:29 +0800 Subject: Remove and replace all note id compression in LZString with base64url Signed-off-by: Max Wu --- lib/realtime.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/realtime.js') diff --git a/lib/realtime.js b/lib/realtime.js index d6ba62b2..5ee9f8fd 100644 --- a/lib/realtime.js +++ b/lib/realtime.js @@ -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) } -- cgit v1.2.3