mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-27 16:40:04 +00:00
a72c0f339a
The instrumentation attempted here has been implemented more correctly by https://phabricator.wikimedia.org/T214706. This change removes instrumentation from this extension. It should not affect much, because emitting events was already disabled. Bug: T162365 Change-Id: I8f02c62d41260a62b37a7738d69c039d2ce7562f
107 lines
2.5 KiB
JSON
107 lines
2.5 KiB
JSON
{
|
|
"name": "SpamBlacklist",
|
|
"author": [
|
|
"Tim Starling",
|
|
"John Du Hart",
|
|
"Daniel Kinzler"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:SpamBlacklist",
|
|
"descriptionmsg": "spam-blacklist-desc",
|
|
"type": "antispam",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.31.0"
|
|
},
|
|
"GroupPermissions": {
|
|
"user": {
|
|
"spamblacklistlog": true
|
|
}
|
|
},
|
|
"AvailableRights": [
|
|
"spamblacklistlog"
|
|
],
|
|
"LogTypes": [
|
|
"spamblacklist"
|
|
],
|
|
"LogRestrictions": {
|
|
"spamblacklist": "spamblacklistlog"
|
|
},
|
|
"LogActionsHandlers": {
|
|
"spamblacklist/*": "SpamBlacklistLogFormatter"
|
|
},
|
|
"GrantPermissions": {
|
|
"viewrestrictedlogs": {
|
|
"spamblacklistlog": true
|
|
}
|
|
},
|
|
"APIModules": {
|
|
"spamblacklist": "ApiSpamBlacklist"
|
|
},
|
|
"MessagesDirs": {
|
|
"SpamBlackList": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"ApiSpamBlacklist": "includes/ApiSpamBlacklist.php",
|
|
"BaseBlacklist": "includes/BaseBlacklist.php",
|
|
"EmailBlacklist": "includes/EmailBlacklist.php",
|
|
"SpamBlacklistHooks": "includes/SpamBlacklistHooks.php",
|
|
"SpamBlacklist": "includes/SpamBlacklist.php",
|
|
"SpamBlacklistLogFormatter": "includes/SpamBlacklistLogFormatter.php",
|
|
"SpamRegexBatch": "includes/SpamRegexBatch.php",
|
|
"SpamBlacklistPreAuthenticationProvider": "includes/SpamBlacklistPreAuthenticationProvider.php"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.spamBlacklist.visualEditor": {
|
|
"scripts": "ve-spamblacklist/ve.init.mw.SpamBlacklistSaveErrorHandler.js",
|
|
"targets": [ "desktop", "mobile" ]
|
|
}
|
|
},
|
|
"VisualEditorPluginModules": [
|
|
"ext.spamBlacklist.visualEditor"
|
|
],
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "SpamBlacklist/modules"
|
|
},
|
|
"Hooks": {
|
|
"EditFilterMergedContent": [
|
|
"SpamBlacklistHooks::filterMergedContent"
|
|
],
|
|
"EditFilter": [
|
|
"SpamBlacklistHooks::validate"
|
|
],
|
|
"PageContentSaveComplete": [
|
|
"SpamBlacklistHooks::pageSaveContent"
|
|
],
|
|
"UserCanSendEmail": [
|
|
"SpamBlacklistHooks::userCanSendEmail"
|
|
],
|
|
"ParserOutputStashForEdit": [
|
|
"SpamBlacklistHooks::onParserOutputStashForEdit"
|
|
],
|
|
"UploadVerifyUpload": [
|
|
"SpamBlacklistHooks::onUploadVerifyUpload"
|
|
]
|
|
},
|
|
"config": {
|
|
"BlacklistSettings": {
|
|
"spam": {
|
|
"files": [ "https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1" ]
|
|
},
|
|
"_merge_strategy": "array_plus_2d"
|
|
},
|
|
"LogSpamBlacklistHits": false
|
|
},
|
|
"AuthManagerAutoConfig": {
|
|
"preauth": {
|
|
"SpamBlacklistPreAuthenticationProvider": {
|
|
"class": "SpamBlacklistPreAuthenticationProvider"
|
|
}
|
|
}
|
|
},
|
|
"manifest_version": 1
|
|
}
|