Commit graph

3579 commits

Author SHA1 Message Date
Translation updater bot 5ca316a3e3
Localisation updates from https://translatewiki.net.
Change-Id: Ie5b02afc5556c5b8f3ef76f2030518a5187c88d0
2024-06-12 09:21:51 +02:00
Translation updater bot 16ff42311a Localisation updates from https://translatewiki.net.
Change-Id: Iaed8103a5877eb3589bd0e2e4866d57fbb3452fc
2024-06-11 09:54:01 +02:00
Translation updater bot a3ffa72ace Localisation updates from https://translatewiki.net.
Change-Id: I9659ecf89768763e3d2e5bf58c6382eae7019d80
2024-06-10 09:55:07 +02:00
Wandji69 4e0570e5cf Use ObjectCacheFactory methods
Bug: T363770
Change-Id: I66ffd2d559a22c72a72b1f664a9332900704d503
2024-06-10 02:37:01 +01:00
jenkins-bot 47dffc154b Merge "build: Updating npm dependencies" 2024-06-09 12:51:57 +00:00
Umherirrender 81d0c7bcd4 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I325f5bab163cddf76dbf8d5a6eca35a7ed7b6df7
2024-06-08 23:46:45 +02:00
libraryupgrader a8c5016096 build: Updating npm dependencies
* eslint-config-wikimedia: 0.27.0 → 0.28.0
  The following rules are failing and were disabled:
  * ReCaptchaNoCaptcha/resources/ve-confirmedit-reCaptchaNoCaptcha:
    * no-jquery/no-extend
  * Turnstile/resources/ve-confirmedit-turnstile:
    * no-jquery/no-extend
  * hCaptcha/resources/ve-confirmedit-hCaptcha:
    * no-jquery/no-extend

* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: I8045a843b3e9b6a67e07d580ce07dc6afeaeab2d
2024-06-07 15:07:52 +00:00
Translation updater bot 8e9edd424e Localisation updates from https://translatewiki.net.
Change-Id: I0df8fa119d1d1bb1f64a9e1bf1e5caed43c2c0d2
2024-06-05 09:22:41 +02:00
jenkins-bot dc3ea1d293 Merge "styles: Remove deprecated .background-image() mixin call" 2024-06-03 14:29:16 +00:00
Translation updater bot 0b5f73a591 Localisation updates from https://translatewiki.net.
Change-Id: I9fb7e17f10b81df8fc8a57d7c0c2ee6830568c4a
2024-06-03 09:31:21 +02:00
Volker E. 60d60aaea8 styles: Remove deprecated .background-image() mixin call
Also removing mixins import.

Bug: T366398
Change-Id: I3aecc142b9c98c1b2f314129898f55c0178fb00f
2024-05-31 22:37:57 -07:00
Translation updater bot 858f816a3a Localisation updates from https://translatewiki.net.
Change-Id: I02526e478e1f634beb4bb3e262aa065f01f35f22
2024-05-31 09:56:18 +02:00
Translation updater bot 9cb4b92414 Localisation updates from https://translatewiki.net.
Change-Id: I56725951cd6cc3befc3ee43a41150df6a51a92d3
2024-05-28 09:30:16 +02:00
Translation updater bot 0391f71eb8 Localisation updates from https://translatewiki.net.
Change-Id: Ib4ad06b036b3180ceb13ce203fc6faf88d02c485
2024-05-24 09:43:17 +02:00
Translation updater bot 557b9d2e80 Localisation updates from https://translatewiki.net.
Change-Id: I4f672493461becda0219acf90a1217e9d99a8766
2024-05-21 09:27:48 +02:00
Translation updater bot 2257420e8a Localisation updates from https://translatewiki.net.
Change-Id: I1e3685cd6d4bed45e606635d97c25d22feeeb554
2024-05-20 09:24:57 +02:00
libraryupgrader b16fa9e5b9 build: Updating grunt-banana-checker to 0.13.0
Change-Id: Ie9e8967d9e8b9157208317855d35c89bdb22e901
2024-05-18 04:45:57 +00:00
Translation updater bot 39d36fdbd4 Localisation updates from https://translatewiki.net.
Change-Id: I05a170561bc565114ea48faef89a849b5cbacc98
2024-05-17 09:48:21 +02:00
Kosta Harlan 81e9cb99c0
AbuseFilterHooks: Provide feature flags for AF custom actions
Why:

- There are issues with the current "showcaptcha" action, and we need to
  disable it until the problems are fixed

What:

- Define a feature flag to enable custom actions. For now, nothing is
  enabled.

Bug: T20110
Change-Id: I3484d66298bc9f49dfbe003a0605e2ac1a092e10
2024-05-15 08:42:44 +02:00
Translation updater bot 90dd0cfaad Localisation updates from https://translatewiki.net.
Change-Id: Ifcf3f9d979c82cc200b8ffdf4ce28eb287e25d63
2024-05-14 09:25:47 +02:00
jenkins-bot 5b8f28ffe2 Merge "Allow showing a CAPTCHA in response to AbuseFilter consequence" 2024-05-13 09:51:10 +00:00
Translation updater bot 46fd644605 Localisation updates from https://translatewiki.net.
Change-Id: I8c3bd20622fc2b96b43ee85b46cf4e0f7cbeee64
2024-05-13 09:26:52 +02:00
Kosta Harlan 10b9276855
Allow showing a CAPTCHA in response to AbuseFilter consequence
Why:

- We want to allow administrators to invoke a CAPTCHA
  if an AbuseFilter is configured to do so.

What:

- Implement the AbuseFilterCustomActions hook and define
  CaptchaConsequence, which will inform AbuseFilter's implementation
  of onConfirmEditTriggersCaptcha that it should show a CAPTCHA
- Deliberately do not register the "showcaptcha" action as a "dangerous
  action", because filters that use this action are aimed at bot
  traffic, and we don't want a bot to be able to get past the
  "showcaptcha" action just by making repeat requests

Soft depends on I110a5f5321649dcf85993a0c209ab70b9886057c

Bug: T20110
Change-Id: Ie87e3d850541c7dc44aaeb6b30489a32a0c8cc60
2024-05-12 16:16:11 +02:00
Translation updater bot 3d191873f4 Localisation updates from https://translatewiki.net.
Change-Id: I0fddd83200da2c398438b60d11b6f9f42acda854
2024-05-10 09:28:36 +02:00
Translation updater bot db96b6a22f Localisation updates from https://translatewiki.net.
Change-Id: I1a069b44fb7da5601872a12ab0ba37120f165e26
2024-05-06 09:25:26 +02:00
libraryupgrader 3b2a2a8b42 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I188353ff385bcaf437b6fd71571a25312e70a249
2024-05-06 05:15:53 +00:00
Kosta Harlan 41fbcb2963
phan: Load AbuseFilter in phan config
See I76e8ce9c1533ca8ad47abb1ffd2e683cc85b78aa for CI config change

Change-Id: Iecea4af54b972637fb2c4c2ce234708f8eb4e4b9
2024-05-05 11:46:45 +03:00
Bartosz Dziewoński f68465095b QuestyCaptcha: Remove mw-ui-input class that does nothing
It does nothing, because the 'mediawiki.ui.input' module is not loaded
on the edit form, so it doesn't apply any styles.

I'm not sure if it ever worked, but it definitely hasn't worked since
at least 2021 (that's the oldest wiki I found on Patchdemo that has
the class but doesn't have the styling).

Change-Id: Ibd9d3df3aa74eb22c6b7fed97076056fc4187c66
2024-04-29 19:20:21 +02:00
Fomafix efe5dd0cfb Inject service MainWANObjectCache into Hooks
Change-Id: Ib6561efa67e61b5a5cf93b284e36fcf3f49c603b
2024-04-26 20:49:06 +00:00
Translation updater bot faf0e4f3b5 Localisation updates from https://translatewiki.net.
Change-Id: I2202f6c2cc9e7fd234ccc858d40f1f31a5dc2e26
2024-04-26 09:47:57 +02:00
jenkins-bot 8d7f4815f1 Merge "Add missing style dependency to "ext.confirmEdit.fancyCaptcha"" 2024-04-24 15:44:17 +00:00
jenkins-bot a73f8ad925 Merge "Remove unused module "ext.confirmEdit.fancyCaptchaMobile"" 2024-04-24 15:44:16 +00:00
Translation updater bot 1b66676367 Localisation updates from https://translatewiki.net.
Change-Id: I2d976697b9a33221bc97e9a278ddd8ab740c57eb
2024-04-24 09:18:35 +02:00
jenkins-bot dd65737f3a Merge "Fix captcha image overflow" 2024-04-23 22:41:35 +00:00
Bartosz Dziewoński 24ca43e5ca Fix captcha image overflow
Bug: T358024
Change-Id: Ibbbd434a06f683ed9aae0d80ec04ee4df9864a50
2024-04-24 00:16:15 +02:00
Bartosz Dziewoński 5f0bbc59f8 Add missing style dependency to "ext.confirmEdit.fancyCaptcha"
This causes an icon to appear the "Reload" link/button
when the CAPTCHA is shown e.g. within VisualEditor.

Change-Id: Ie883e9fca419d278d2daa91166eb06339e183f9b
2024-04-23 22:14:44 +00:00
Bartosz Dziewoński 920113eca9 Remove unused module "ext.confirmEdit.fancyCaptchaMobile"
Unused since change 8fc5bd264017587415c303b4f6a7718277a49840
in MobileFrontend (2015).

There was once a FIXME comment to remove it, but it was lost
in change bf412aad28 (also 2015).

Change-Id: I418e5d68b94ecffc5381f98419bdf38b18c96cd5
2024-04-23 22:14:35 +00:00
Translation updater bot 43fb582b4e Localisation updates from https://translatewiki.net.
Change-Id: Ic81a2c3c2e548b088df32939f2625fc4eb4f8b1f
2024-04-22 09:27:59 +02:00
Translation updater bot ae3c8bd11e Localisation updates from https://translatewiki.net.
Change-Id: Ic97849ca5ca94bd1911197f11e83146a3d443038
2024-04-19 09:46:09 +02:00
libraryupgrader 6e9b418ca4 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I5f047afc81a078695b251aee3e4db23c486379c5
2024-04-16 23:52:19 +00:00
Translation updater bot 0edb4f4457 Localisation updates from https://translatewiki.net.
Change-Id: Ic8f74fa28ee56c93d868b020ca83901860cea107
2024-04-16 09:27:40 +02:00
jenkins-bot 174894bdf6 Merge "Remove MathCaptcha" 2024-04-15 13:48:36 +00:00
Translation updater bot 0285e163bc Localisation updates from https://translatewiki.net.
Change-Id: I171d1723a1fed26a881b0a3f83abe60528b6f019
2024-04-15 09:27:45 +02:00
Translation updater bot ec94dcb3ac Localisation updates from https://translatewiki.net.
Change-Id: Ief5c9c074daaac5c5ce3c5950482bc633f044ed6
2024-04-11 09:21:07 +02:00
Translation updater bot 20f3fb9b43 Localisation updates from https://translatewiki.net.
Change-Id: I8e8dff5cbe9b042f92f90e7380925132be888d7e
2024-04-05 09:37:54 +02:00
Translation updater bot 0802b72ece Localisation updates from https://translatewiki.net.
Change-Id: I31c2abbba4186a5048f2d1e94958ebc506411f4d
2024-04-04 09:37:35 +02:00
Amir Sarabadani 40fb527c59 Remove MathCaptcha
It relies on PNG mode of Math extension which has been removed since
I595926027433182cc03

Bug: T360978
Change-Id: I650d096dfd83c725e30242eb5795236c59fe7883
2024-04-01 18:24:00 +02:00
Umherirrender b2ec6b2955 Replace isset() with null check in SimpleCaptcha
Found usage of isset() on expression $this->captchaSolved that appears
to be always set. isset() should only be used to suppress errors. Check
whether the expression is null instead.
See https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#isset

Change-Id: I5520786060b2aa2fca81acd40924d84e94e8dff2
2024-04-01 13:38:44 +02:00
Timo Tijhof 5c1fc0f2e0 tests: Remove redundant wgMainCacheType=hash
Follows-up 5b3765f7b, which refactored the way this was set.

Introduced in 2016 with 31c59374a, but redundant since 2020 with
commit c6c62e2c8f in MediaWiki core.

Bug: T139216
Change-Id: Iaf0a2f60833797ecf0b74f69dd797ca3c53cc550
2024-03-29 23:03:41 +00:00
Translation updater bot 42b6bcaa3b Localisation updates from https://translatewiki.net.
Change-Id: I0679113b316d84fb9fab215d5f9720ac6a6f6f27
2024-03-29 08:46:30 +01:00