mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-10 00:45:01 -04:00
Merge 69b4eb57ac
into a1280fd917
This commit is contained in:
commit
838029b0fb
1 changed files with 0 additions and 18 deletions
|
@ -141,24 +141,6 @@ exports.getAuthor = function (author, callback)
|
||||||
db.get("globalAuthor:" + author, callback);
|
db.get("globalAuthor:" + author, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the Author Name of the author
|
|
||||||
* @param {String} author The id of the author
|
|
||||||
* @param {Function} callback callback(err, name)
|
|
||||||
*/
|
|
||||||
|
|
||||||
exports.getAuthorName = function (authorID, callback)
|
|
||||||
{
|
|
||||||
db.getSub("globalAuthor:" + author, ["name"], callback);
|
|
||||||
console.log(authorID);
|
|
||||||
db.getSub("globalAuthor:" + authorID, ["name"], function(err, authorName){
|
|
||||||
if(ERR(err, callback)) return;
|
|
||||||
callback(null, {authorName: authorName});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the color Id of the author
|
* Returns the color Id of the author
|
||||||
* @param {String} author The id of the author
|
* @param {String} author The id of the author
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue