mediawiki-extensions-AbuseF.../includes
Lucas Werkmeister a2e42d5050 Don’t generate current content text twice
Previously, for non-newly-created pages, AbuseFilter would get the text
for filtering twice: once in AbuseFilterHooks::filterEdit(), and then
again in RunVariableGenerator::getEditTextForFiltering(). (Plus another
call for the text of the previous revision.) The first copy of the text
is only passed into RunVariableGenerator::getEditVars(), and there only
used if the title doesn’t exist, otherwise it’s overwritten with the
second copy. Instead, let’s make AbuseFilterHooks not get the text at
all, and only get the text from the content when we actually need it
(the content is new).

Change-Id: Id12430fa6ba4643113b945e0d0c01b9c0ee1742f
2021-07-22 13:45:32 +02:00
..
Api QueryAbuseLog: remove duplicate setting $conds = [] 2021-04-19 01:22:57 +00:00
ChangeTags build: Updating dependencies 2021-07-21 18:51:18 +00:00
Consequences build: Updating dependencies 2021-07-21 18:51:18 +00:00
EditBox build: Updating dependencies 2021-07-21 18:51:18 +00:00
Filter build: Updating dependencies 2021-07-21 18:51:18 +00:00
Hooks build: Updating dependencies 2021-07-21 18:51:18 +00:00
LogFormatter Add a service to format filter specs 2020-12-19 14:22:08 +01:00
Pager build: Updating dependencies 2021-07-21 18:51:18 +00:00
Parser build: Updating dependencies 2021-07-21 18:51:18 +00:00
Special build: Updating dependencies 2021-07-21 18:51:18 +00:00
VariableGenerator Don’t generate current content text twice 2021-07-22 13:45:32 +02:00
Variables build: Updating dependencies 2021-07-21 18:51:18 +00:00
View build: Updating dependencies 2021-07-21 18:51:18 +00:00
Watcher build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilter.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterChangesList.php Check forcing of page_timestamp revision index 2021-04-30 13:06:43 +01:00
AbuseFilterHooks.php Don’t generate current content text twice 2021-07-22 13:45:32 +02:00
AbuseFilterPermissionManager.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterPreAuthenticationProvider.php SECURITY: Use an anonymous user as creator for autocreations 2021-04-16 14:34:16 -05:00
AbuseFilterServices.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseLogger.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseLoggerFactory.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
BlockAutopromoteStore.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
CentralDBManager.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
CentralDBNotAvailableException.php Add a service to retrieve the central DB 2020-10-31 12:32:46 +00:00
EchoNotifier.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
EditRevUpdater.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
EditStashCache.php build: Updating dependencies 2021-07-21 18:51:18 +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 build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterLookup.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterProfiler.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterRunner.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterRunnerFactory.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterStore.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterUser.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterValidator.php build: Updating dependencies 2021-07-21 18:51:18 +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 build: Updating dependencies 2021-07-21 18:51:18 +00:00
RunnerData.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ServiceWiring.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
SpecsFormatter.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
TableDiffFormatterFullContext.php Move remaining classes to own namespace 2021-01-04 12:11:58 +01:00
TextExtractor.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ThrottleFilterPresentationModel.php Notify of a throttled filter 2020-12-19 10:31:29 +01:00