summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2013-10-07 18:58:20 +0200
committerMarcel Klehr <mklehr@gmx.net>2013-10-07 18:58:20 +0200
commitde73de38b177ca8e8052e688b88377e11fdda683 (patch)
tree55c5b25508f4e512c4b59b9b12e78eefa25d6e64 /src/node
parent9fac5158853e23fea48abb2bb4e7784354d32f5f (diff)
downloadetherpad-lite-de73de38b177ca8e8052e688b88377e11fdda683.zip
Filter author attribs in client_vars.historicalAuthorData
Diffstat (limited to 'src/node')
-rw-r--r--src/node/handler/PadMessageHandler.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index a79d2410..4adf6002 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -953,8 +953,7 @@ function handleClientReady(client, message)
authorManager.getAuthor(authorId, function(err, author)
{
if(ERR(err, callback)) return;
- delete author.timestamp;
- historicalAuthorData[authorId] = author;
+ historicalAuthorData[authorId] = {name: author.name, colorId: author.colorId}; // Filter author attribs (e.g. don't send author's pads to all clients)
callback();
});
}, callback);