Commit graph

2314 commits

Author SHA1 Message Date
Ed Sanders 4826b01af6 Update ESLint and fix config
Change-Id: I53da439c547b1931140a407a71284643aa7f5d49
2023-11-30 12:01:26 +00:00
Ed Sanders 1e77d0163f Document generated messages
Change-Id: I89101839f7c056cdd509e000fb0bbc8573f97515
2023-11-30 11:52:11 +00:00
Ed Sanders deeaf16bdb Remove unused messages
Not used since I4c49c12bcf1366.

Change-Id: If0ba3974bae314aa4e646703f46308a7eedfc69d
2023-11-30 11:41:34 +00:00
Ed Sanders f18aee5bbc Move var declarations inline
Change-Id: Ib952bd8a8eb9e0fce9541c4f9336169416593f3e
2023-11-30 10:58:04 +00:00
jenkins-bot fd1380288e Merge "Move onBeforeSpecialMobileDiffDisplay to class MobileFrontendHandler" 2023-11-30 10:17:38 +00:00
Umherirrender 2609a7c0c9 tests: Remove fallback to deprecated MWIntegrationTestCase::$users
getTestUser is there since 1.28, extension requires 1.41

Change-Id: I88a48435f0a1ecd7093af68dd7a4c96274d24d7c
2023-11-26 12:01:03 +01:00
Translation updater bot 3208ca087f Localisation updates from https://translatewiki.net.
Change-Id: I38890673fc9c3b72572b9bfd654d609cc0141a9f
2023-11-21 08:29:52 +01:00
Translation updater bot 1274f71b50 Localisation updates from https://translatewiki.net.
Change-Id: I672889abcd1ce5b24610dcc8fbdef348424215d7
2023-11-20 08:52:30 +01:00
Fomafix bfe320c2ea Move onBeforeSpecialMobileDiffDisplay to class MobileFrontendHandler
This avoids a hard dependency on extension MobileFrontend.

Change-Id: I7dd3972145c1fbffae9bc58ed0d3157310a53354
2023-11-16 14:46:27 +00:00
jenkins-bot f6d529425b Merge "Implement hook interfaces in Hooks" 2023-11-14 19:09:58 +00:00
Translation updater bot 2646ebf1cb Localisation updates from https://translatewiki.net.
Change-Id: Ie572efdb1ca81fb3ce7abc27e189b4790af67ed0
2023-11-08 13:08:12 +01:00
Fomafix af5658ae05 Implement hook interfaces in Hooks
* BeforeCreateEchoEventHook and
* EchoGetBundleRulesHook from extension Echo and
* BeforeSpecialMobileDiffDisplayHook from extension MobileFrontend.

Change-Id: Icede5f70f988957f245fac1984a63f01fa1d0f44
2023-11-08 11:42:01 +00:00
jenkins-bot 337ff45130 Merge "Replace global config variable" 2023-11-08 04:17:32 +00:00
Fomafix 212c72d5e7 Replace global config variable
Change-Id: Ibe5c6d077ebd1413359c1bcb4b16388874f3f5ea
2023-11-07 21:09:55 +00:00
Fomafix 49beda6416 Replace deprecated global function wfGetDB()
Bug: T330641
Change-Id: I79955bb707e73ef6162ca14d30455732ef12f1f2
2023-11-07 20:40:06 +00:00
Translation updater bot e0662f8a29 Localisation updates from https://translatewiki.net.
Change-Id: I5cbfd526290ceef1c8bd12a99a5bcae9d26c3ca2
2023-11-06 08:58:00 +01:00
Translation updater bot cdb09f929f Localisation updates from https://translatewiki.net.
Change-Id: Ie3779800fc766e4a4aebf69295caed91f3400e61
2023-10-31 09:09:30 +01:00
Translation updater bot a1157414fa Localisation updates from https://translatewiki.net.
Change-Id: I582f78459d515964b4618515d69a080b944ab54c
2023-10-30 17:59:54 +01:00
Translation updater bot d102d74cfd Localisation updates from https://translatewiki.net.
Change-Id: I80b05c0ccb265ca74fe25fdc4f8468c507fd50a6
2023-10-24 09:38:45 +02:00
jenkins-bot 5ca7396e43 Merge "Minerva: Thanks should use Codex classes for thanks link" 2023-10-23 08:35:20 +00:00
Translation updater bot 1da8c455cf Localisation updates from https://translatewiki.net.
Change-Id: I1ad475bfd4d0f43f89dbad620b097703f3ec37f0
2023-10-23 09:51:32 +02:00
Jon Robson f47a195079 Minerva: Thanks should use Codex classes for thanks link
Without this Thanks button will be unstyled on Minerva skin.
In the desktop Minerva diff page, the button should be a progressive button
for consistency with Special:MobileDiff

Testing:
* Check diff mode (AMC disabled)
* history page (AMC enabled)

Bug: T345768
Change-Id: I038cfab627eea2fdf558accbf390a8d2d02153a1
2023-10-19 21:17:08 +00:00
Translation updater bot 1679c7ae3e Localisation updates from https://translatewiki.net.
Change-Id: Ib8b3cf6bb292d846e524cf87c2489d8029a509ca
2023-10-19 08:43:52 +02:00
Translation updater bot 1776992f32 Localisation updates from https://translatewiki.net.
Change-Id: Id16ac77168a18ede8a8649504ea6b399ee630f11
2023-10-09 08:57:11 +02:00
jenkins-bot 443ddda6c0 Merge "build: Update linters" 2023-10-04 18:13:09 +00:00
Ed Sanders 1f2ef4bfb3 build: Update linters
Change-Id: Ib7540c4a667a3e766b1846776672bd8bc301b973
2023-10-04 16:56:18 +01:00
Martin Urbanec 9cef38e80f IP Masking: Do not allow temporary users to thank other users
It has been decided to not allow temporary users to thank
other users (see task). This is because the transition
between anonymous and temporary account is nearly invisible,
and it might be confusing why the thanking ability appears
and hides.

Bug: T345679
Change-Id: I62e67327c9a80b3da9e98a2dccdd4ec2051f3026
2023-10-03 22:23:02 +00:00
Translation updater bot 42f2613d3d Localisation updates from https://translatewiki.net.
Change-Id: I506119e5946745f67b6278140d7ff3bb7bae3466
2023-10-03 09:33:22 +02:00
Translation updater bot 7fe4cce465 Localisation updates from https://translatewiki.net.
Change-Id: Iead0431c3d45443dbf3187ceb8062bf086c1ba8d
2023-10-02 10:58:25 +02:00
Umherirrender a5fc01da56 Use HookHandlers for core hooks
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.

Bug: T338457
Change-Id: If844970f0c8d8f09d0de2a2140b080d1292530a1
2023-09-28 23:32:52 +02:00
Translation updater bot 2adcc71d89 Localisation updates from https://translatewiki.net.
Change-Id: I6da43620c7bc76bb5da3edaa71cb87c88e8022c8
2023-09-25 08:47:08 +02:00
Translation updater bot b4afd5c713 Localisation updates from https://translatewiki.net.
Change-Id: I03ee0678d4c64248d87e6e905c3b92936010abe9
2023-09-21 10:16:49 +02:00
Translation updater bot 84ed031b96 Localisation updates from https://translatewiki.net.
Change-Id: I1eab719105069b705b23b3bbb4a11d8d1d8420af
2023-09-20 08:55:55 +02:00
Translation updater bot 7bac1f1957 Localisation updates from https://translatewiki.net.
Change-Id: Icf91af1f88dbd4c4f915d7c6e03c863b45b8d29e
2023-09-18 08:44:59 +02:00
Translation updater bot d9ebd64528 Localisation updates from https://translatewiki.net.
Change-Id: Ie9c9da9a2f421f1843db317aec77bf83222e445c
2023-09-11 09:05:11 +02:00
Translation updater bot b0c8aa5aae Localisation updates from https://translatewiki.net.
Change-Id: Ia1dce31bd0f0cd364eb2b586267645b555598448
2023-09-07 11:14:00 +02:00
Translation updater bot 4a703e7964 Localisation updates from https://translatewiki.net.
Change-Id: I21845d99abd325cb8f7244d8139b2fc103a86380
2023-09-06 08:43:09 +02:00
jenkins-bot 231d61ce2d Merge "build: Update MediaWiki requirement to 1.41" 2023-09-05 21:38:10 +00:00
Translation updater bot 71704d99cd Localisation updates from https://translatewiki.net.
Change-Id: Id34eabbb73c15ab6d970ecf2cffa232156a504ef
2023-09-01 09:03:40 +02:00
Translation updater bot 9c1903c787 Localisation updates from https://translatewiki.net.
Change-Id: I8aebfceffa8d0038eebac90b26e56c6a27c5414f
2023-08-29 08:29:10 +02:00
Translation updater bot 74790ac4bb Localisation updates from https://translatewiki.net.
Change-Id: I8b512fb444918a59d8a180978a9b2b2816070624
2023-08-28 09:31:15 +02:00
Translation updater bot 8be3349fca Localisation updates from https://translatewiki.net.
Change-Id: I039b1bc4668315d72ee4c9c25e7ea659755a574a
2023-08-24 09:52:20 +02:00
Umherirrender 3d1164f9a4 Use UserFactory::newFromUserIdentity/Title::castFromPageIdentity
As the revision is a local revision, the user identity can be used to
build a User. Not needed to use the id.

Same for the title/page id, where a PageIdentity already exists. Not
needed to use the id.

Change-Id: Ia088d964f75fb46bd0848c9aba8f5bc97ad7a067
2023-08-21 22:11:12 +02:00
Bartosz Dziewoński 7095811872 ApiCoreThank: Fix handling of hidden author of revision
Follow-up to ef903f25d7.

Bug: T344623
Change-Id: Id2f2ea08407fcc9a1cc60e5930e041ef3242ffd1
2023-08-21 16:12:36 +00:00
Translation updater bot 38253edc78 Localisation updates from https://translatewiki.net.
Change-Id: I6e6a952226164ad1424a2f08dd1ea328e2d611d6
2023-08-21 08:48:37 +02:00
Umherirrender f09186cd40 Use namespace MediaWiki\Request\DerivativeRequest
Bug: T321681
Change-Id: Ibbce4a56600fd362cc2bd4901927413325e2661b
2023-08-20 01:40:49 +02:00
gerritbot e2ed94cff3 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I491f0a12aaa4d70a4b6eccda3a478b223896feaa
2023-08-19 14:27:12 +00:00
James D. Forrester 9afd171d43 build: Update MediaWiki requirement to 1.41
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I51fd9ae1374d0f25b9373e114cd18c8466d0e586
2023-08-19 14:10:09 +08:00
Daimona Eaytoy 933f5591e5 Make ApiCoreThankIntegrationTest more robust
Use methods provided by core to create (non)existing test pages and
editing them. Make sure that revId is not 1, or the test will fail due
to T344475. This is needed by core change Ie2f1809d.

Change-Id: Ib7ea8c566d330db27c8abfcb4a783ddbd31787e0
2023-08-18 00:37:20 +00:00
Translation updater bot 08a1634d68 Localisation updates from https://translatewiki.net.
Change-Id: I1a94d4e2113b2d8487260e57a762ef203e58966f
2023-08-17 12:10:55 +02:00