Check wgIsProbablyEditable before showing 'Reply' buttons

Bug: T240582
Change-Id: I127cd937ed2725c649dc34a8d18a29560c09fb44
This commit is contained in:
Bartosz Dziewoński 2020-03-10 21:19:19 +01:00
parent c5763bc2bd
commit 9cb497fc97

View file

@ -8,7 +8,7 @@ mw.dt = {};
if ( new mw.Uri().query.dtdebug ) {
mw.loader.load( 'ext.discussionTools.debug' );
} else {
} else if ( mw.config.get( 'wgIsProbablyEditable' ) ) {
mw.hook( 'wikipage.content' ).add( function ( $container ) {
$container.find( '.mw-parser-output' ).each( function () {
var $node = $( this );