mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "MWEditSummaryWidget: Handle suppressed comments"
This commit is contained in:
commit
c29e5a8c6a
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue