Merge "ReplyWidget: Pass 'title' when previewing"

This commit is contained in:
jenkins-bot 2020-01-08 23:28:20 +00:00 committed by Gerrit Code Review
commit 45e811a688

View file

@ -164,7 +164,10 @@ ReplyWidget.prototype.onInputChange = function () {
wikitext = controller.autoSign( wikitext );
wikitext = wikitext.slice( 0, -4 ) + '<span style="opacity: 0.5;">~~~~</span>';
wikitext = indent + wikitext.replace( /\n/g, '\n' + indent );
this.previewRequest = parsePromise = this.api.parse( wikitext, { pst: true } );
this.previewRequest = parsePromise = this.api.parse( wikitext, {
pst: true,
title: mw.config.get( 'wgPageName' )
} );
}
// TODO: Add list context