Commit graph

2221 commits

Author SHA1 Message Date
Thiemo Kreuz a9878ab2ab Some smaller general code cleanups
In detail:
* Use more compact syntax to avoid a bit of code duplication.
* Use createMock() shortcut in tests.
* Avoid hiding code in strings.
* Remove a comment that literally repeats what the code says.

Change-Id: Ibedef380489451268e2e87f0864164e8f9737913
2023-01-03 12:30:41 +01:00
Translation updater bot e8692feb5b Localisation updates from https://translatewiki.net.
Change-Id: I9f943a61466652b1ae560b464336c02cdd5d90cb
2023-01-03 08:21:40 +01:00
Translation updater bot e629649285 Localisation updates from https://translatewiki.net.
Change-Id: I4f12c312a851e4fce34c29d85b18159a769b68a9
2023-01-02 08:44:32 +01:00
Translation updater bot f1e7a29854 Localisation updates from https://translatewiki.net.
Change-Id: I3b469b5a806f61bf02ef0dccd96aa61c600009ed
2022-12-29 10:02:40 +01:00
Translation updater bot 351ed24e76 Localisation updates from https://translatewiki.net.
Change-Id: I1ce5b7f41f1bc1385b5bee8f63dd9c80c524f4a8
2022-12-26 09:11:21 +01:00
Translation updater bot f128128af2 Localisation updates from https://translatewiki.net.
Change-Id: Ic2e51ff97bd84c5c0c091153406cb69fb2c72ad7
2022-12-22 11:04:48 +01:00
TheresNoTime 09e88294fc
Hooks: fix spelling mistake
Change-Id: I3aa9e02eee5cceca37edfacfa95cc89a80bc90c4
2022-12-21 20:38:48 -05:00
Dayllan Maza 819b71f9cd Thank: Fix thank action with no revision id
This is a temporary fix by not showing the thank action
on log entries for pages that use the new PagerTool.

There should be a follow up to allow PagerTool to call
a different hook that can take a reference to log entries
and properly generate the thank action depending on
the type (revision/log)

Bug: T325753
Change-Id: Icaaa044420baa26efdafc7f3fe049b9f58c72ee8
2022-12-21 11:10:22 -05:00
Translation updater bot fa48a93506 Localisation updates from https://translatewiki.net.
Change-Id: Ia023ca1b614066e6a577952c2058d893ff0f168b
2022-12-21 09:18:15 +01:00
Translation updater bot f3e94edf4f Localisation updates from https://translatewiki.net.
Change-Id: I730a3d3e0f3b8901034aee4a380073fbaaefb78c
2022-12-20 09:30:41 +01:00
Translation updater bot 64e38331da Localisation updates from https://translatewiki.net.
Change-Id: If8366ea5aae73f0516f6044a97938c5a1d6ceee7
2022-12-19 09:04:53 +01:00
jenkins-bot 34cb755433 Merge "Add service container" 2022-12-16 01:52:13 +00:00
jenkins-bot 1daea2fcf8 Merge "Load Thanks JS on more special pages" 2022-12-16 01:24:32 +00:00
jenkins-bot 1702d0724b Merge "Adds the ThanksQueryHelper service" 2022-12-16 01:06:25 +00:00
Roan Kattouw 2e2c2c6188 Load Thanks JS on more special pages
Due to Ia03038e86c6a607c8b75eefedbf0285ca1a2f8c8 in MW core, the thanks
links now also appear on Contributions and Recentchanges/Watchlist. Load
the thanks JS module there too, so that users can send thanks without
leaving the page.

(Unfortunately, we can't add this module in the hook that adds the
thanks links, because we don't have access to an OutputPage object
there.)

Bug: T51541
Change-Id: I00ecd3b2c72332b6dc5290e649e6811cea0133af
2022-12-15 16:39:35 -08:00
Gergő Tisza 27b7bcd50d
Add service container
Change-Id: I25e91ff3294eaebe042bb8cbc90af72f37b4f1a9
2022-12-15 16:21:28 -08:00
Jon Robson e85b2c6996
Adds the ThanksQueryHelper service
Bug: T325094
Change-Id: I3a14d255546c12655dc4492194a07b0d205f0534
2022-12-15 16:11:28 -08:00
jenkins-bot 983574b454 Merge "Enable thanks JavaScript on mobile" 2022-12-15 02:00:59 +00:00
jenkins-bot bdcb1564d7 Merge "Replace deprecated Linker::formatComment" 2022-12-14 21:25:35 +00:00
Translation updater bot 2bffc1c019 Localisation updates from https://translatewiki.net.
Change-Id: I2593db0416adf6c0bc5e4c01ea2dd50cf352f6c0
2022-12-14 08:16:33 +01:00
Jon Robson 5109079f52 Enable thanks JavaScript on mobile
On mobile mode, the thanks link is currently hidden on the history
page and the module is silently removed on mobile. Add the module
to those pages

Bug: T324723
Change-Id: I5286e80f9dd683ba55b03664dc31de77c19722b7
2022-12-12 15:38:17 -08:00
Translation updater bot 4952dc9d96 Localisation updates from https://translatewiki.net.
Change-Id: Id5c2c397f318c682552c9507118c43897afe67b6
2022-12-12 08:23:05 +01:00
Umherirrender 290de639fa Replace deprecated Linker::formatComment
Bug: T324906
Change-Id: If7c5ad58fa3d21069ab47fc87ad683406c666273
2022-12-10 22:57:25 +01:00
jenkins-bot e0a4f67673 Merge "Bump required MediaWiki version to 1.40.0" 2022-12-08 07:46:16 +00:00
Translation updater bot 4c4aa86731 Localisation updates from https://translatewiki.net.
Change-Id: I7c4fe53aeb966ac745dbfb90d92e5da159e72290
2022-12-08 08:30:08 +01:00
Translation updater bot b0e169409a Localisation updates from https://translatewiki.net.
Change-Id: Ifd772877e37bb578b63604edfb5f852dce8355c6
2022-12-07 08:14:02 +01:00
libraryupgrader 46ac24ad01 build: Updating qs to 6.11.0
* https://github.com/advisories/GHSA-hrpp-h998-j3pp

Change-Id: I75a971884d4c7bdf451a926ea3aceeb39beaa21c
2022-12-07 03:48:50 +00:00
Translation updater bot 08880e78e4 Localisation updates from https://translatewiki.net.
Change-Id: I6215010e14c53c18a0e1d71e808bdaad8a28030c
2022-12-06 08:53:44 +01:00
Translation updater bot 2e686e776e Localisation updates from https://translatewiki.net.
Change-Id: I183ba94a1bf1ef3d244a0a104c50b885edc24979
2022-12-05 08:34:31 +01:00
Translation updater bot 75857763eb Localisation updates from https://translatewiki.net.
Change-Id: Ie50b94f74f5562b12d513c9ac83b9c834891a02b
2022-12-01 08:16:52 +01:00
Translation updater bot a89ede970e Localisation updates from https://translatewiki.net.
Change-Id: Id9cb23339ac7b44e16dd1fba360d4d7d3df92034
2022-11-28 08:50:23 +01:00
Translation updater bot 1538de0be7 Localisation updates from https://translatewiki.net.
Change-Id: If168cc295e3192fc871f83e6e46ebd4638dd6987
2022-11-23 08:33:36 +01:00
Translation updater bot aaba4a02af Localisation updates from https://translatewiki.net.
Change-Id: I871159b2e007e20df179c8c56545099b78a42613
2022-11-22 08:34:42 +01:00
Translation updater bot 09f665a254 Localisation updates from https://translatewiki.net.
Change-Id: I43ee4a4aecc93ebb6856d5293fc1edd6d5687153
2022-11-21 08:17:10 +01:00
Translation updater bot 6765ddafc6 Localisation updates from https://translatewiki.net.
Change-Id: I1c3903be2add2e3f76cc6744ee997a76e8f2ec11
2022-11-17 08:28:02 +01:00
libraryupgrader e17b520eb6 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: I45463bab9be9529472ec11f54ab574dba04e84c6
2022-11-16 23:40:51 +00:00
Thalia 1bbfae82d8 Bump required MediaWiki version to 1.40.0
This is needed  since d287af1af1,
where special handling for global blocks is removed.

This is because global blocks are now found via $user->getBlock(),
since I92a426745a9a4cb05beb0d546c238c2826a2b615.

This change required a hook added in 1.40, which allows extension
blocks to be reported correctly: I1c20e7e62e0f2b453735689e3dc543164b5fd067

Change-Id: I48a14cc13b10e2cb0a7f3b71cdde0f8a106b7e6b
2022-11-14 17:49:38 +00:00
Translation updater bot 26069631d2 Localisation updates from https://translatewiki.net.
Change-Id: I01dbc5e191ba7f8a419bc4662368b4fd47fb5392
2022-11-14 08:11:20 +01:00
AnaïsGueyte d287af1af1 Remove GlobalBlock calls from Thanks
Remove the usage of User::isBlockedGlobally and User::getGlobalBlock

Bug: T318891
Change-Id: I79450b34523d0ecb1a7a7b1e5a99b7650e02866e
2022-11-09 14:01:45 -05:00
Translation updater bot e63844ab89 Localisation updates from https://translatewiki.net.
Change-Id: Ib9d963442d0e33ea15d804d081bd83575063f628
2022-11-04 09:04:07 +01:00
Translation updater bot 62f52c86c3 Localisation updates from https://translatewiki.net.
Change-Id: Ib7c6eab85d06bc071612c0290f71b26a46622952
2022-10-31 09:46:59 +01:00
Translation updater bot 1d6fc253aa Localisation updates from https://translatewiki.net.
Change-Id: Ia2892d5a542fa6e28614351ca409650bb953ce60
2022-10-26 08:20:14 +02:00
Translation updater bot b159475f6d Localisation updates from https://translatewiki.net.
Change-Id: I44c3d34980ddf34d4b3530c08e261f8bbe7f3e4d
2022-10-24 08:23:45 +02:00
libraryupgrader c726944c22 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: I064a1fbc089de789c2c7681df8b7d0471ff9b9e4
2022-10-21 20:30:35 +00:00
Translation updater bot c7cc853997 Localisation updates from https://translatewiki.net.
Change-Id: I584299a47b670bf515ab1b8522ff33a8059e88b8
2022-10-20 08:32:24 +02:00
Translation updater bot 7c025866d4 Localisation updates from https://translatewiki.net.
Change-Id: I501b1ccb67dd5e65b64cb9639fd8f9488077fcfa
2022-10-17 08:22:39 +02:00
Translation updater bot 2b735d513e Localisation updates from https://translatewiki.net.
Change-Id: Iec5b7c3c42cf51beab5f1e19fc230dcb6147547f
2022-10-10 10:21:26 +02:00
libraryupgrader 1c6edbd7e6 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: Idc24fffa5c7e275f9e79f77503d754e3c65530e5
2022-10-09 11:14:43 +00:00
libraryupgrader 157e61305d build: Updating grunt-banana-checker to 0.10.0
Change-Id: I8f00b4797902b3462d05625371685c4d11c780ba
2022-10-07 07:44:33 +00:00
Translation updater bot aff5b702b1 Localisation updates from https://translatewiki.net.
Change-Id: I124f67cc48b6f8c2f6384e37379266d87fd64af5
2022-09-28 08:23:00 +02:00