mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 08:23:52 +00:00
Merge "Remove dtenable API hack"
This commit is contained in:
commit
9a318bdc89
|
@ -418,9 +418,6 @@ 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
|
|
||||||
// a page view with reply links forced with ?dtenable=1 or otherwise
|
|
||||||
dtenable: '1',
|
|
||||||
dttags: tags.join( ',' ),
|
dttags: tags.join( ',' ),
|
||||||
editingStatsId: logger.getSessionId()
|
editingStatsId: logger.getSessionId()
|
||||||
};
|
};
|
||||||
|
|
|
@ -543,9 +543,6 @@ 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
|
|
||||||
// a page view with reply links forced with ?dtenable=1 or otherwise
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue