mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
push authorID to author object and return via api...
This commit is contained in:
parent
daaa650a1b
commit
edd8b12049
1 changed files with 1 additions and 0 deletions
|
@ -1536,6 +1536,7 @@ exports.padUsers = function (padID, callback) {
|
||||||
}
|
}
|
||||||
var aid = sessioninfos[ix].author;
|
var aid = sessioninfos[ix].author;
|
||||||
authorManager.getAuthor( aid, function ( err, author ) {
|
authorManager.getAuthor( aid, function ( err, author ) {
|
||||||
|
author.id = aid;
|
||||||
authors.push( author );
|
authors.push( author );
|
||||||
if ( authors.length === pad2sessions[padID].length ) {
|
if ( authors.length === pad2sessions[padID].length ) {
|
||||||
callback(null, {padUsers: authors});
|
callback(null, {padUsers: authors});
|
||||||
|
|
Loading…
Reference in a new issue