mediawiki-extensions-AbuseF.../includes
MusikAnimal 7db0e05aeb Show notification when editor links to a blocked domain
This leverages the new BlockedExternalDomains system that is now part of
AbuseFilter. It notifies editors in realtime if a link they add is
blocked. See https://w.wiki/7ZsF for more information.

BlockedExternalDomains is slated to have its own API tantamount to the
action=spamblacklist endpoint, after which case this code will need to be
updated. In the meantime, it's meant to serve as a minimal viable product
for the CWS 2023 wish <https://w.wiki/7ZsE> for wikitext users.

The new $wgAbuseFilterBlockedExternalDomainsNotification configuration
setting controls the availability of this feature.

A similar feature for VisaulEditor is tracked at T276857

Bug: T347435
Change-Id: I7eae55f12da9ee58be5786bfc153e549b09598e7
2023-10-31 15:32:02 +00:00
..
Api Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 04:13:30 +00:00
ChangeTags Use much more narrow IReadableDatabase and related where possible 2023-06-14 19:42:01 +00:00
Consequences Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
EditBox Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02:00
Filter build: Updating dependencies 2021-07-21 18:51:18 +00:00
Hooks Show notification when editor links to a blocked domain 2023-10-31 15:32:02 +00:00
LogFormatter BlockedDomains: Add logging in case of hit 2023-06-14 22:23:50 +02:00
Pager Replace empty() with a null compare 2023-10-21 20:27:31 +02:00
Parser Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
Special Fix non-escaped messages used in page subtitles 2023-10-05 22:51:21 +02:00
VariableGenerator Merge "When testing against a page creation in RC, set page_id to 0 as in the real filtering" 2023-09-11 09:28:33 +00:00
Variables Use namespaced Title 2023-08-19 19:49:36 +02:00
View Parse wikitext in page titles with filter number as parameter 2023-10-05 20:54:58 +00:00
Watcher Migrate DeferredUpdatesManager to use DeferredUpdates directly 2023-08-21 12:59:28 +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 Replace deprecated Linker::commentBlock 2022-12-10 22:32:53 +01:00
AbuseFilterPermissionManager.php AbuseFilterPermissionManager: Add sitewide block check 2022-10-21 17:34:01 +00:00
AbuseFilterPreAuthenticationProvider.php Inject dependencies into the authentication provider 2022-04-09 18:44:25 +02:00
AbuseFilterServices.php BlockedDomains: Move filtering logic to a dedicated class 2023-08-06 16:27:23 +02:00
AbuseLogger.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-16 01:54:05 +00:00
AbuseLoggerFactory.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-16 01:54:05 +00:00
ActionSpecifier.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
BlockAutopromoteStore.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
BlockedDomainFilter.php BlockedDomains: Move filtering logic to a dedicated class 2023-08-06 16:27:23 +02:00
BlockedDomainStorage.php Merge "Various code style clean-ups" 2023-06-23 18:43:58 +00: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 Refactor ParserStatus 2021-09-17 11:25:54 +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 Use namespaced MediaWiki\User\ActorMigrationBase 2023-08-20 01:08:09 +02:00
FilterProfiler.php Use namespaced Title 2023-08-19 19:49:36 +02:00
FilterRunner.php Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
FilterRunnerFactory.php Migrate DeferredUpdatesManager to use DeferredUpdates directly 2023-08-21 12:59:28 +01:00
FilterStore.php Use the expression assignment operator to simplify code 2023-10-14 00:42:34 +02:00
FilterUser.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
FilterValidator.php Convert remaining permissions checks to use Authority 2022-07-02 14:49:47 +02: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 Merge "Add support for regex string replacements." 2022-05-31 14:54:33 +00:00
RunnerData.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
ServiceWiring.php Migrate DeferredUpdatesManager to use DeferredUpdates directly 2023-08-21 12:59:28 +01:00
SpecsFormatter.php Update moved class RawMessage 2023-05-19 10:30:17 +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 Improve wording for throttled filter warnings 2022-02-22 11:10:19 +00:00