From 255a1b94f2d26e4cf39d582391b6322da44780a4 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Mon, 28 Mar 2011 23:08:25 +0100 Subject: [PATCH] Don't add a anonymous author to the attribute pool, this prevents some wired bugs --- node/PadManager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/PadManager.js b/node/PadManager.js index fc550c995..6d3fe13ae 100644 --- a/node/PadManager.js +++ b/node/PadManager.js @@ -123,7 +123,8 @@ function appendRevision(id, theChangeset, author) globalPads[id].rev[newRev].meta.timestamp = new Date().getTime(); //ex. getNumForAuthor - apool.putAttrib(['author',author||'']); + if(author != '') + apool.putAttrib(['author',author||'']); if(newRev%100==0) {