mediawiki-extensions-AbuseF.../includes
Bartosz Dziewoński c859f1b526 Remove custom API error code and data for blocked domains
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
2024-05-03 16:58:37 +02:00
..
Api Use namespaced classes 2023-12-10 23:03:12 +01:00
ChangeTags Replace deprecated ChangeTags method calls with ChangeTagStore 2024-03-29 11:08:41 +01:00
Consequences build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
EditBox Fix casing of dropdown-related methods 2024-03-09 15:44:59 +01:00
Filter Replace BadMethodCallException with LogicException 2023-11-16 19:10:50 +00:00
Hooks Remove custom API error code and data for blocked domains 2024-05-03 16:58:37 +02:00
LogFormatter logging: Inject services into AbuseLogHitFormatter 2024-03-29 21:53:34 +01:00
Pager Merge "build: Updating mediawiki/mediawiki-codesniffer to 43.0.0" 2024-03-16 19:21:29 +00:00
Parser Use modern str_starts_with() and [ ... ] syntax 2024-04-11 14:07:43 +02:00
Special Fix new Phan errors 2024-04-10 23:12:28 +00:00
VariableGenerator Add new variable for last edit time 2024-04-10 23:12:45 +00:00
Variables Merge "Use modern str_starts_with() and [ ... ] syntax" 2024-04-12 09:32:53 +00:00
View Fix new Phan errors 2024-04-10 23:12:28 +00:00
Watcher Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilter.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
AbuseFilterActorMigration.php Use namespaced MediaWiki\User\ActorMigrationBase 2023-08-20 01:08:09 +02:00
AbuseFilterChangesList.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterPermissionManager.php AbuseFilterPermissionManager: Add sitewide block check 2022-10-21 17:34:01 +00:00
AbuseFilterPreAuthenticationProvider.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterServices.php BlockedDomains: Move filtering logic to a dedicated class 2023-08-06 16:27:23 +02:00
AbuseLogger.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
AbuseLoggerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
ActionSpecifier.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
BlockAutopromoteStore.php Use namespaced classes 2023-12-10 23:03:12 +01:00
BlockedDomainFilter.php Fix Status combining MessageSpecifier and parameters array 2024-04-14 00:02:32 +00:00
BlockedDomainStorage.php Remove indirect calls to IDBAccessObject::READ_* constants 2024-01-26 09:25:35 -05:00
CentralDBManager.php Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
CentralDBNotAvailableException.php Add a service to retrieve the central DB 2020-10-31 12:32:46 +00:00
EchoNotifier.php Use namespaced Title 2023-08-19 19:49:36 +02:00
EditRevUpdater.php Replace deprecated database object access methods 2023-03-08 16:50:56 +01:00
EditStashCache.php Add new variable for last edit time 2024-04-10 23:12:45 +00:00
EmergencyCache.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterCompare.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterImporter.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterLookup.php FilterLookup: Stop using DBAccessObjectUtils::getDBOptions() 2024-03-21 20:22:02 +01:00
FilterProfiler.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
FilterRunner.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterRunnerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterStore.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterUser.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
FilterValidator.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
GlobalNameUtils.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
InvalidImportDataException.php Adjust code coverage 2020-11-19 22:40:26 +00:00
KeywordsManager.php Add new variable for last edit time 2024-04-10 23:12:45 +00:00
RunnerData.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
ServiceWiring.php tests: Remove redundant wgMainCacheType=hash 2024-03-29 15:37:58 -07:00
SpecsFormatter.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
TableDiffFormatterFullContext.php Use the new Wikimedia\Diff namespace 2023-06-29 11:56:13 +10:00
TextExtractor.php Remove bits of unused code across the codebase 2023-06-14 19:41:00 +00:00
ThrottleFilterPresentationModel.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00