diff options
author | Christoph (Sheogorath) Kern | 2018-03-18 15:13:06 +0100 |
---|---|---|
committer | GitHub | 2018-03-18 15:13:06 +0100 |
commit | f6df2deb8439dda4576ee70691c98c1ab53c965d (patch) | |
tree | 6a56c539e86058cf89a50636b451167fc3a75f83 /lib/realtime.js | |
parent | 6b30f662725b54d9c0ef3954fdb5a463da697cc2 (diff) | |
parent | 8bfe51940f2eff035394b7713cbbce5b9b446842 (diff) |
Merge pull request #743 from hackmdio/fix-to-use-url-safe-base64
Fix to use url-safe base64 in note url
Diffstat (limited to '')
-rw-r--r-- | lib/realtime.js | 3 |
1 files changed, 1 insertions, 2 deletions
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) } |