mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-13 17:27:39 +00:00
3025d83afc
Since AbstractAuthenticationProvider ::setLogger, ::setManager, ::setConfig, ::setHookContainer methods had been soft deprecated, so its usages were removed. AuthenticationProviderTestTrait ::initProvider was used in order to initialize TitleBlacklistPreAuthenticationProvider in the test. * Also bump required MW version to 1.37.0 Bug: T281994 Change-Id: I15b811a8596addad7a50b13d978851ebd86da9a5
137 lines
3.1 KiB
JSON
137 lines
3.1 KiB
JSON
{
|
|
"name": "TitleBlacklist",
|
|
"version": "1.5.0",
|
|
"author": [
|
|
"Victor Vasiliev",
|
|
"Fran Rogers"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:TitleBlacklist",
|
|
"descriptionmsg": "titleblacklist-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "antispam",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.37.0"
|
|
},
|
|
"GroupPermissions": {
|
|
"sysop": {
|
|
"tboverride": true,
|
|
"titleblacklistlog": true
|
|
}
|
|
},
|
|
"AvailableRights": [
|
|
"tboverride",
|
|
"tboverride-account",
|
|
"titleblacklistlog"
|
|
],
|
|
"LogTypes": [
|
|
"titleblacklist"
|
|
],
|
|
"LogRestrictions": {
|
|
"titleblacklist": "titleblacklistlog"
|
|
},
|
|
"LogActionsHandlers": {
|
|
"titleblacklist/*": "LogFormatter"
|
|
},
|
|
"GrantPermissions": {
|
|
"createaccount": {
|
|
"tboverride-account": true
|
|
},
|
|
"editprotected": {
|
|
"tboverride": true
|
|
},
|
|
"viewrestrictedlogs": {
|
|
"titleblacklistlog": true
|
|
}
|
|
},
|
|
"APIModules": {
|
|
"titleblacklist": "ApiQueryTitleBlacklist"
|
|
},
|
|
"MessagesDirs": {
|
|
"TitleBlacklist": [
|
|
"i18n",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"AutoloadClasses": {
|
|
"TitleBlacklist": "includes/TitleBlacklist.php",
|
|
"TitleBlacklistEntry": "includes/TitleBlacklistEntry.php",
|
|
"TitleBlacklistHooks": "includes/TitleBlacklistHooks.php",
|
|
"TitleBlacklistAuthenticationRequest": "includes/TitleBlacklistAuthenticationRequest.php",
|
|
"TitleBlacklistPreAuthenticationProvider": "includes/TitleBlacklistPreAuthenticationProvider.php",
|
|
"Scribunto_LuaTitleBlacklistLibrary": "includes/Scribunto_LuaTitleBlacklistLibrary.php",
|
|
"ApiQueryTitleBlacklist": "includes/api/ApiQueryTitleBlacklist.php"
|
|
},
|
|
"ResourceModules": {
|
|
"mediawiki.api.titleblacklist": {
|
|
"scripts": "mediawiki.api.titleblacklist.js",
|
|
"dependencies": [
|
|
"mediawiki.api"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.titleblacklist.visualEditor": {
|
|
"scripts": "ve-titleblacklist/ve.init.mw.TitleBlacklistSaveErrorHandler.js",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
}
|
|
},
|
|
"attributes": {
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.titleblacklist.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "TitleBlacklist/modules"
|
|
},
|
|
"Hooks": {
|
|
"getUserPermissionsErrorsExpensive": "TitleBlacklistHookHandler",
|
|
"TitleGetEditNotices": "TitleBlacklistHookHandler",
|
|
"MovePageCheckPermissions": "TitleBlacklistHookHandler",
|
|
"EditFilter": "TitleBlacklistHookHandler",
|
|
"PageSaveComplete": "TitleBlacklistHookHandler",
|
|
"ScribuntoExternalLibraries": "TitleBlacklistHooks::onScribuntoExternalLibraries"
|
|
},
|
|
"HookHandlers": {
|
|
"TitleBlacklistHookHandler": {
|
|
"class": "TitleBlacklistHooks"
|
|
}
|
|
},
|
|
"config": {
|
|
"TitleBlacklistSources": {
|
|
"value": []
|
|
},
|
|
"TitleBlacklistUsernameSources": {
|
|
"value": "*"
|
|
},
|
|
"TitleBlacklistLogHits": {
|
|
"value": false
|
|
},
|
|
"TitleBlacklistCaching": {
|
|
"value": {
|
|
"warningchance": 100,
|
|
"expiry": 900,
|
|
"warningexpiry": 600
|
|
}
|
|
},
|
|
"TitleBlacklistBlockAutoAccountCreation": {
|
|
"value": true
|
|
}
|
|
},
|
|
"AuthManagerAutoConfig": {
|
|
"preauth": {
|
|
"TitleBlacklistPreAuthenticationProvider": {
|
|
"class": "TitleBlacklistPreAuthenticationProvider"
|
|
}
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|