Commit graph

9 commits

Author SHA1 Message Date
Umherirrender f5db77c750 Use namespaced classes
This requires 1.42 for some new names

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I1b433ab02231087e0f84a734092751ce2cf28b2c
2024-01-04 22:22:56 +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
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
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
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
Siddharth VP 6b71b859ee Use namespaced Echo classes
Change-Id: I1ff1d1772e615bc618ed2dd0080795cdfd98e79e
2023-06-09 23:16:35 +05:30
Daimona Eaytoy 22ccc90c75 Remove unneded @throws MWException
Echo can throw it but it should not be caught.

Bug: T328220
Change-Id: I0f91d6dd98f1f65de49d5f89fc2c80ba1a99ca16
2023-06-07 18:51:16 +02:00
Marcin Kostrzewski e483b844c9 API: Refactor to match modern code standards
I've moved all API classes into a separate folder,
as I felt like grouping modules improves readability.
APIs themselves had storage logic which I extracted and put
in another folder. I was originally going with an interface
to the storage to allow for other storage methods than
log entries, but the code was too tightly coupled with it,
so I've left that for another day. Added dependency injection
for all services and used ServiceOptions for config vars.

Bug: T337002
Change-Id: Ie8a1f435d635e1d0e1286f673bfe96cc4fdfe4fe
2023-05-20 17:57:26 +03:00