Commit graph

3846 commits

Author SHA1 Message Date
jenkins-bot a8dc3b8163 Merge "Add Simplified Chinese magic word aliases" into REL1_42 2024-06-30 21:08:08 +00:00
xtex feda2a12e7 Add Simplified Chinese magic word aliases
Change-Id: Ib050aa998e38473ad9c16c4cea36235a0d1c18c9
(cherry picked from commit 1a2ccbb58c)
2024-06-30 08:13:11 +00:00
xtex 391cad0888 Add Simplified Chinese special page aliases
Change-Id: Idb7fd3e8d793c41716c6baf5e196a8968d17eb42
(cherry picked from commit cdf5801d4d)
2024-06-30 08:12:56 +00:00
Translation updater bot 03911a17ec
Localisation updates from https://translatewiki.net.
Change-Id: I8b4d85da0a7202a8d1642c95544c3b358be8badb
2024-06-27 08:43:23 +02:00
Translation updater bot 48279df257
Localisation updates from https://translatewiki.net.
Change-Id: I789d1f21c3d95ce252f7acefc668c8cc260e971c
2024-06-20 08:43:50 +02:00
libraryupgrader 8b23bc5a52 build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: Ie7270fd78ef2a665aacc2feb94207786ff8696a5
2024-06-16 19:11:15 +00:00
Translation updater bot 64d82d67bd
Localisation updates from https://translatewiki.net.
Change-Id: If420b7681d51436151bad6e29b040f7fbb9d9dd9
2024-06-13 08:36:23 +02:00
Translation updater bot 975fbf0150 Localisation updates from https://translatewiki.net.
Change-Id: I4fc8e4761ef9c98a0ab9d4c8fe122ae82c44e3b9
2024-06-06 08:38:44 +02:00
Translation updater bot e08e1ac0fa Localisation updates from https://translatewiki.net.
Change-Id: I08eda9457d059ff49eacbd760e3d9ee662448306
2024-05-30 09:11:57 +02:00
Translation updater bot f8885af825 Localisation updates from https://translatewiki.net.
Change-Id: I1e8bb1052d98b0c69f832d43ffb671ff85ad0dfe
2024-05-23 08:38:49 +02:00
Translation updater bot 02f4d44e21 Localisation updates from https://translatewiki.net.
Change-Id: I438e8d1ed5b460004689df9a903d823a1c706546
2024-05-16 08:29:52 +02:00
Bartosz Dziewoński 1dc5c700ae TopicSubscriptionsPager: Fix exception when no subscriptions
Bug: T362507
Change-Id: I569fb2ae017edc9d8e49910faff85e8c9301077d
(cherry picked from commit cf792094bb)
2024-05-15 16:09:06 +00:00
Amir Sarabadani 9e27d8506f Fix static cache access
Currently, DT is making more than 30 exact queries back to back in every
request. It is clear the caching is completely broken.

It is because when the properties don't exist (majority of the cases),
it returns an empty array making the caching noop.

Tested in mwdebug1002 and it fixes the issue.

Bug: T364693
Change-Id: I182ae121999df1a04cfb7399bc49891587a37074
2024-05-13 07:32:04 +00:00
Translation updater bot 87e59e6bb5 Localisation updates from https://translatewiki.net.
Change-Id: I65ca98f94cd69a90fb39f655dd7218f9f0f6cc25
2024-05-09 08:07:50 +02:00
Translation updater bot 3619b14efe Localisation updates from https://translatewiki.net.
Change-Id: I007ff3786aa4c151d48b26e470b65d6ebdcfe49f
2024-05-02 08:11:00 +02:00
Translation updater bot eb67744523 Localisation updates from https://translatewiki.net.
Change-Id: I16820116cbbeddd6a2435c4c092d2b0509ebf39f
2024-04-25 08:30:32 +02:00
Translation updater bot efb498d238 Localisation updates from https://translatewiki.net.
Change-Id: I1f3b1728f9c12eda333cfdbadf2a79e7cb73f5ec
2024-04-18 08:10:01 +02:00
Translation updater bot 584a133d74 Localisation updates from https://translatewiki.net.
Change-Id: Id62e382980bbc3622c14229dd16c66950ddb7132
2024-04-11 08:09:19 +02:00
Translation updater bot a4f4f33ace Localisation updates from https://translatewiki.net.
Change-Id: I066211c751e43b6d2b029865eae97d85aadb4f9b
2024-04-08 09:25:34 +02:00
Translation updater bot 2996cab1c1 Localisation updates from https://translatewiki.net.
Change-Id: Iffdb24c464a48afd006173698c30d532271722b6
2024-04-05 09:38:02 +02:00
jenkins-bot a071c62d83 Merge "Special:TopicSubscriptions: Use permalinks when available" 2024-04-04 14:06:49 +00:00
Bartosz Dziewoński 52ae0f3152 Special:TopicSubscriptions: Use permalinks when available
When permalink data is available, display a permalink using
the current page title, instead of a plain link to the section
at the time of subscription.

Consolidate and clean up some existing permalink code.

Bug: T306373
Change-Id: Ie2f63cbfdbfa703530205201dfcfb0e5ad053b35
2024-04-04 13:44:06 +00:00
Translation updater bot 3004ff5626 Localisation updates from https://translatewiki.net.
Change-Id: I072236b18450a895a2ee46dddc8dc40ce9dd2167
2024-04-04 09:37:50 +02:00
Translation updater bot 3b9e043e47 Localisation updates from https://translatewiki.net.
Change-Id: I9d7ce8baab44307e145b31434760d20103684fbc
2024-04-02 09:21:21 +02:00
jenkins-bot 409c2fb7e5 Merge "Replace deprecated ChangeTags method calls with ChangeTagsStore" 2024-04-01 11:11:40 +00:00
Translation updater bot e1339d3b2a Localisation updates from https://translatewiki.net.
Change-Id: Ib8f8ca892aa182b69d1842cc9480010f473ad89b
2024-04-01 09:22:33 +02:00
Dringsim afff10a932
Replace deprecated ChangeTags method calls with ChangeTagsStore
Bug: T360664
Change-Id: I14b676e74b277dfea62109fcca6881fea3763997
2024-04-01 09:00:39 +08:00
David Lynch ebc884e217 Also don't check for moved topics on fragments starting with !/
Similar reasoning for our existing filter on just `/`; it's only really
used in state routing.

Bug: T361322
Change-Id: Ibcf1a58a884b953003012640041471d3bb5c9450
2024-03-29 10:07:43 -05:00
jenkins-bot f3df3dfa0a Merge "Setup grunt-tyops and fix" 2024-03-28 13:35:23 +00:00
Ed Sanders a70f411ee1 Setup grunt-tyops and fix
Change-Id: I372c3cc5bedaf800716bff68cadb2846a399a42a
2024-03-27 14:01:18 +00:00
Bartosz Dziewoński c44313a867 Fix autosubscribe on new pages with $wgDiscussionToolsAutoTopicSubEditor = 'discussiontoolsapi'
Broken by the introduction of 'nocontent' parameter in
6bf6105d2a.

Bug: T359751
Change-Id: I60d9a6f51e897ecdc68525151990212ecc171548
2024-03-27 00:51:14 +01:00
jenkins-bot 083900821e Merge "Clean up subscribe links/buttons" 2024-03-26 18:39:11 +00:00
Ed Sanders eb92db2b08 topicsubscriptions.js: No longer assume both buttons and links exist in DOM
Bug: T360942
Bug: T359751
Change-Id: I98d50a734dc9bd37d7d488ed97d5a47e65790587
2024-03-26 15:17:45 +00:00
James D. Forrester 30d911b649 Replace wfGetDB() in test with $this->getDb()
Not spotted in code search due to wrong case, which PHP forgives.
Whoops.

Bug: T360991
Depends-On: I73e4d3ab3158659b6a3c0a942f6bef10820b4248
Change-Id: I2d1cfd0f05c962f2d62dde911e4b0eed1ca02d83
2024-03-26 12:01:16 +00:00
Translation updater bot 9781b4f9a6 Localisation updates from https://translatewiki.net.
Change-Id: Ie37486f1b59c37ea3724378c23d640cf84dd4460
2024-03-26 08:19:29 +01:00
jenkins-bot 29b4ec8b75 Merge "ReplyLinksController: url.searchParams -> searchParams" 2024-03-25 20:40:12 +00:00
jenkins-bot ab9aae8172 Merge "Pass through dtenable from main request query string" 2024-03-25 20:16:46 +00:00
Ed Sanders fba7edbbeb ReplyLinksController: url.searchParams -> searchParams
Cache the object property as we never use the rest of the URL.

Change-Id: I1a0ec90b2a4366f126150469c72908ec22817d4f
2024-03-25 18:33:16 +00:00
jenkins-bot 62cff4900f Merge "Add #top to the ignore list for checking for moved topics" 2024-03-25 18:30:06 +00:00
Ed Sanders 5957ac55df Pass through dtenable from main request query string
Instead of passing dtenable=1 unconditionally for API requests.

Bug: T360863
Change-Id: I42c651558d95a88eaf6006b6509caa4e41df8464
2024-03-25 18:26:53 +00:00
Translation updater bot fad95c02b6 Localisation updates from https://translatewiki.net.
Change-Id: I7ff6591d46d2f9df5e4c1a34347e343cacf4fbe9
2024-03-25 08:35:48 +01:00
Bartosz Dziewoński dacef1a97a Clean up subscribe links/buttons
* Don't generate `<!--__DTSUBSCRIBELINK__...-->` placeholder comments
  (follow-up to Idb23b0f5e438d35ed74569ff50302c7fad5ba688)
* Remove unused method parameter
* Remove unnecessary pass-by-reference (only $tocInfo needs it)

Change-Id: Ie3348671c486de5bbd9f286772a8d145e3609bd5
2024-03-25 01:13:59 +01:00
David Lynch 5276729d3e Add #top to the ignore list for checking for moved topics
Top is in the WHATWG spec as a magic value that always navigates to the
top of the document.

There used to be a #top element in pre-Vector2022 skins, and it's in
fairly wide use on some wikis in signatures and via gadgets, so many
links exist that point to it.

Bug: T360274
Change-Id: Ia12464239ab2cdc428c570d0cf5df1c0d1780b7a
2024-03-22 22:01:17 -05:00
jenkins-bot f22dabfb80 Merge "Move some doc comments to real type hints" 2024-03-23 01:36:33 +00:00
Umherirrender 6c005d293f Add explicit parentheses around mixed boolean operator
Mixing different binary boolean operators within an expression
without using parentheses to clarify precedence is not allowed (T358966)

Change-Id: I9e9c9531ab0fa373606b19a5865cec748a3f36ff
2024-03-23 00:52:30 +01:00
Translation updater bot 1d377d284f Localisation updates from https://translatewiki.net.
Change-Id: I8ac50a30ce6b64f7ae2bbe969b71a4fe4928a68c
2024-03-22 08:44:09 +01:00
Translation updater bot bf752c5e0d Localisation updates from https://translatewiki.net.
Change-Id: If5ddaf783d99aa097db92e08ea13b64b81bf95ca
2024-03-21 08:54:57 +01:00
Translation updater bot fe83a6b5b3 Localisation updates from https://translatewiki.net.
Change-Id: Iac44a8d485271e6c94e4878aa9b5d0af88bc6cc7
2024-03-20 08:23:31 +01:00
Translation updater bot 86a9ab0e36 Localisation updates from https://translatewiki.net.
Change-Id: I3da696e30b4af2deb68264e4b60e4f52d6f09f92
2024-03-19 08:24:55 +01:00
Translation updater bot 62d66cb82a Localisation updates from https://translatewiki.net.
Change-Id: Ida7ec3e9cb98ff3d26874da827b97bd28aff6458
2024-03-18 08:30:50 +01:00