mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Merge "Pass through dtenable from main request query string"
This commit is contained in:
commit
ab9aae8172
|
@ -442,9 +442,8 @@ CommentController.prototype.getApiQuery = function ( pageName, checkboxes ) {
|
|||
assert: mw.user.isAnon() ? 'anon' : 'user',
|
||||
assertuser: mw.user.getName() || undefined,
|
||||
uselang: mw.config.get( 'wgUserLanguage' ),
|
||||
// HACK: Always display reply links afterwards, ignoring preferences etc., in case this was
|
||||
// a page view with reply links forced with ?dtenable=1 or otherwise
|
||||
dtenable: '1',
|
||||
// Pass through dtenable query string param from original request
|
||||
dtenable: new URLSearchParams( location.search ).get( 'dtenable' ) ? '1' : undefined,
|
||||
dttags: tags.join( ',' )
|
||||
};
|
||||
|
||||
|
|
|
@ -794,9 +794,8 @@ function refreshPageContents( oldId ) {
|
|||
useskin: mw.config.get( 'skin' ),
|
||||
mobileformat: OO.ui.isMobile(),
|
||||
uselang: mw.config.get( 'wgUserLanguage' ),
|
||||
// HACK: Always display reply links afterwards, ignoring preferences etc., in case this was
|
||||
// a page view with reply links forced with ?dtenable=1 or otherwise
|
||||
dtenable: '1',
|
||||
// Pass through dtenable query string param from original request
|
||||
dtenable: new URLSearchParams( location.search ).get( 'dtenable' ) ? '1' : undefined,
|
||||
prop: [ 'text', 'revid', 'categorieshtml', 'sections', 'displaytitle', 'subtitle', 'modules', 'jsconfigvars' ],
|
||||
page: !oldId ? mw.config.get( 'wgRelevantPageName' ) : undefined,
|
||||
oldid: oldId || undefined
|
||||
|
|
Loading…
Reference in a new issue