Gergő Tisza has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/260224

Change subject: [DO NOT MERGE] Switch FlaggedRevs to "flagged protection" mode 
on huwiki
......................................................................

[DO NOT MERGE] Switch FlaggedRevs to "flagged protection" mode on huwiki

This makes FlaggedRevs behave similarly to how it does on enwiki:
* everyone sees the latest revision by default
* admins can enable flagged protection via the page protection UI,
  in which case anonymous users see the protected version
* less FlaggedRevs-specific UI is shown on the pages

Bug: T121995
Change-Id: I609f0837d71d170956c116734a31d2ee45c6a6a5
---
M wmf-config/flaggedrevs.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/24/260224/1

diff --git a/wmf-config/flaggedrevs.php b/wmf-config/flaggedrevs.php
index ecbaddc..3efd464 100644
--- a/wmf-config/flaggedrevs.php
+++ b/wmf-config/flaggedrevs.php
@@ -468,8 +468,10 @@
 }
 
 elseif ( $wgDBname == 'huwiki' ) {
-       // # UI
-       $wgFlaggedRevsLowProfile = false;
+       // # "Flagged protection" mode
+       $wgFlaggedRevsProtection = true;
+       $wgFlaggedRevsOverride = false;
+       $wgFlaggedRevsRestrictionLevels = array( '', 'autoconfirmed', 'trusted' 
);
 
        // # namespaces
        $wgFlaggedRevsNamespaces = array_merge( $wgFlaggedRevsNamespaces, 
array( NS_CATEGORY, 100 ) ); # 100 = Portal

-- 
To view, visit https://gerrit.wikimedia.org/r/260224
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I609f0837d71d170956c116734a31d2ee45c6a6a5
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: GergÅ‘ Tisza <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to