Merge "MWEditSummaryWidget: Handle suppressed comments"

This commit is contained in:
jenkins-bot 2021-03-15 11:36:26 +00:00 committed by Gerrit Code Review
commit c29e5a8c6a

View file

@ -138,6 +138,10 @@ ve.ui.MWEditSummaryWidget.prototype.getSummaries = function () {
changes = ve.getProp( response, 'query', 'usercontribs' ) || [];
return changes
// Filter out changes without comment (e.g. due to RevisionDelete)
.filter( function ( change ) {
return Object.prototype.hasOwnProperty.call( change, 'comment' );
} )
// Remove section /* headings */
.map( function ( change ) {
return splitSummary( change.comment ).comment.trim();