]> git.openstreetmap.org Git - chef.git/commitdiff
enable blocklist logging for wiki administrators
authorTigerfell <tigerfell-688@tuta.io>
Sat, 14 Aug 2021 20:50:38 +0000 (22:50 +0200)
committerGrant <github@firefishy.com>
Thu, 19 Aug 2021 12:59:41 +0000 (13:59 +0100)
cookbooks/mediawiki/templates/default/mw-ext-SpamBlacklist.inc.php.erb
cookbooks/mediawiki/templates/default/mw-ext-TitleBlacklist.inc.php.erb

index da2fb70ee721aac969a8a105ebd3c7c0870d0c2c..721ea398e4812c988f0c035ab7bf27a0ec77a2a0 100644 (file)
@@ -5,3 +5,7 @@ wfLoadExtension( 'SpamBlacklist' );
 $wgSpamBlacklistFiles = array(
        'https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1'
 );
+# log hits, but allow only administrators to view them
+$wgLogSpamBlacklistHits = true;
+$wgGroupPermissions['user']['spamblacklistlog'] = false;
+$wgGroupPermissions['sysop']['spamblacklistlog'] = true;
index 7f1dc889409e33ad485e3a02e483c8a20cf39e38..111ff3d2fbefd38c3eb66273e15b5f066963ade6 100644 (file)
@@ -11,3 +11,7 @@ $wgTitleBlacklistSources = array(
     'src'  => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw',
   ),
 );
+# log hits, but allow only administrators to view them
+$wgTitleBlacklistLogHits = true;
+$wgGroupPermissions['user']['titleblacklistlog'] = false;
+$wgGroupPermissions['sysop']['titleblacklistlog'] = true;