mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
c859f1b526
A custom API error code and data similar to those used when an edit is blocked by a normal AbuseFilter filter were accidentally added when the feature was introduced. They should not be there, as the blocked domains feature is not a normal AbuseFilter filter. Hopefully nobody is relying on the format of this API response yet. This commit changes the action=edit response for this case from: { "error": { "code": "abusefilter-disallowed", "info": "The text you wanted to publish was blocked by our filter. The following domain is blocked from being added: example.edu", "abusefilter": { "id": "blockeddomain", "description": "blockeddomain", "actions": "disallow" } } } to: { "error": { "code": "abusefilter-blocked-domains-attempted", "info": "The text you wanted to publish was blocked by our filter. The following domain is blocked from being added: example.edu" } } Change-Id: I61ccc8f44b63e5cd0f11b1fe9a00ff60104a6249 |
||
---|---|---|
.. | ||
Handlers | ||
AbuseFilterAlterVariablesHook.php | ||
AbuseFilterBuilderHook.php | ||
AbuseFilterComputeVariableHook.php | ||
AbuseFilterContentToStringHook.php | ||
AbuseFilterCustomActionsHook.php | ||
AbuseFilterDeprecatedVariablesHook.php | ||
AbuseFilterFilterActionHook.php | ||
AbuseFilterGenerateGenericVarsHook.php | ||
AbuseFilterGenerateTitleVarsHook.php | ||
AbuseFilterGenerateUserVarsHook.php | ||
AbuseFilterGenerateVarsForRecentChangeHook.php | ||
AbuseFilterGetDangerousActionsHook.php | ||
AbuseFilterHookRunner.php | ||
AbuseFilterInterceptVariableHook.php | ||
AbuseFilterShouldFilterActionHook.php |