diff options
author | Bradley Arvin <Brads@Bradleys-MacBook-Pro.local> | 2015-10-28 13:28:54 -0400 |
---|---|---|
committer | Bradley Arvin <Brads@Bradleys-MacBook-Pro.local> | 2015-10-28 13:28:54 -0400 |
commit | a9d7ab9e18689f3309e695d083351f0f5f7225bb (patch) | |
tree | 94db3bf39b1b3675d37748791761945810dc56c3 /src | |
parent | 6c68396ed59415b2be30e7dffe659bf0f0d01909 (diff) | |
download | etherpad-lite-a9d7ab9e18689f3309e695d083351f0f5f7225bb.zip |
Fix for #2809
Diffstat (limited to 'src')
-rw-r--r-- | src/node/db/AuthorManager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/db/AuthorManager.js b/src/node/db/AuthorManager.js index e0f569ef..3e3b691a 100644 --- a/src/node/db/AuthorManager.js +++ b/src/node/db/AuthorManager.js @@ -127,7 +127,7 @@ exports.createAuthor = function(name, callback) var author = "a." + randomString(16); //create the globalAuthors db entry - var authorObj = {"colorId" : Math.floor(Math.random()*32), "name": name, "timestamp": new Date().getTime()}; + var authorObj = {"colorId" : Math.floor(Math.random()*(exports.getColorPalette().length)), "name": name, "timestamp": new Date().getTime()}; //set the global author db entry db.set("globalAuthor:" + author, authorObj); |