Merge "Pass through dtenable from main request query string"

This commit is contained in:
jenkins-bot 2024-03-25 20:16:46 +00:00 committed by Gerrit Code Review
commit ab9aae8172
2 changed files with 4 additions and 6 deletions

View file

@ -442,9 +442,8 @@ CommentController.prototype.getApiQuery = function ( pageName, checkboxes ) {
assert: mw.user.isAnon() ? 'anon' : 'user', assert: mw.user.isAnon() ? 'anon' : 'user',
assertuser: mw.user.getName() || undefined, assertuser: mw.user.getName() || undefined,
uselang: mw.config.get( 'wgUserLanguage' ), uselang: mw.config.get( 'wgUserLanguage' ),
// HACK: Always display reply links afterwards, ignoring preferences etc., in case this was // Pass through dtenable query string param from original request
// a page view with reply links forced with ?dtenable=1 or otherwise dtenable: new URLSearchParams( location.search ).get( 'dtenable' ) ? '1' : undefined,
dtenable: '1',
dttags: tags.join( ',' ) dttags: tags.join( ',' )
}; };

View file

@ -794,9 +794,8 @@ function refreshPageContents( oldId ) {
useskin: mw.config.get( 'skin' ), useskin: mw.config.get( 'skin' ),
mobileformat: OO.ui.isMobile(), mobileformat: OO.ui.isMobile(),
uselang: mw.config.get( 'wgUserLanguage' ), uselang: mw.config.get( 'wgUserLanguage' ),
// HACK: Always display reply links afterwards, ignoring preferences etc., in case this was // Pass through dtenable query string param from original request
// a page view with reply links forced with ?dtenable=1 or otherwise dtenable: new URLSearchParams( location.search ).get( 'dtenable' ) ? '1' : undefined,
dtenable: '1',
prop: [ 'text', 'revid', 'categorieshtml', 'sections', 'displaytitle', 'subtitle', 'modules', 'jsconfigvars' ], prop: [ 'text', 'revid', 'categorieshtml', 'sections', 'displaytitle', 'subtitle', 'modules', 'jsconfigvars' ],
page: !oldId ? mw.config.get( 'wgRelevantPageName' ) : undefined, page: !oldId ? mw.config.get( 'wgRelevantPageName' ) : undefined,
oldid: oldId || undefined oldid: oldId || undefined