Set 'useskin' when using API action=parse

Bug: T266195
Change-Id: I65c3e71924e0e126cac95088a4c3774cee8e8a72
This commit is contained in:
Ed Sanders 2020-10-22 14:03:40 +01:00 committed by Bartosz Dziewoński
parent 516361937d
commit 9b965c45b5

View file

@ -281,6 +281,9 @@ function update( data, comment, pageName, replyWidget ) {
} ).then( function () {
return api.get( {
action: 'parse',
// HACK: 'useskin' triggers a different code path that runs our OutputPageBeforeHTML hook,
// adding our reply links in the HTML (T266195)
useskin: mw.config.get( 'skin' ),
prop: [ 'text', 'modules', 'jsconfigvars' ],
page: mw.config.get( 'wgRelevantPageName' )
} );