mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "ThreadItem.js: Only search CommentItem's for authors"
This commit is contained in:
commit
2dde6572f5
|
@ -114,7 +114,9 @@ ThreadItem.static.newFromJSON = function ( json ) {
|
|||
ThreadItem.prototype.getAuthorsBelow = function () {
|
||||
var authors = {};
|
||||
function getAuthorSet( comment ) {
|
||||
authors[ comment.author ] = true;
|
||||
if ( comment.type === 'comment' ) {
|
||||
authors[ comment.author ] = true;
|
||||
}
|
||||
// Get the set of authors in the same format from each reply
|
||||
comment.replies.forEach( getAuthorSet );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue