mwbot merge requestshttps://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests2024-02-02T20:23:40Zhttps://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests/71Raise MSRV to 1.702024-02-02T20:23:40ZLegoktmRaise MSRV to 1.70Per our dependencies.Per our dependencies.https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests/67Add `mwoauth` crate2023-12-31T06:14:30ZLegoktmAdd `mwoauth` crateThis adds helpers to implement the MediaWiki OAuth2 authentication flow.
It aims to be simpler than generic crates like `oauth2` and agnostic to
your webserver (e.g. not Rocket-specific like `rocket_oauth2`).
At some point this should b...This adds helpers to implement the MediaWiki OAuth2 authentication flow.
It aims to be simpler than generic crates like `oauth2` and agnostic to
your webserver (e.g. not Rocket-specific like `rocket_oauth2`).
At some point this should be integrated into `mwapi` or possibly `mwbot`
to automatically refresh the access_token when the API let's us know it
has expired.
Bug: T350997https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests/66parsoid: Switch to using rest.php v1 unconditionally2023-12-27T03:47:38ZLegoktmparsoid: Switch to using rest.php v1 unconditionallyBug: T354035Bug: T354035https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests/27Add Template::force_parameter_order()2023-06-06T14:15:04ZLegoktmAdd Template::force_parameter_order()Parsoid works hard to reduce dirty diffs, and one of those things is
keeping parameters in the same order they originally were in.
But in some cases we do actually want to change/standardize the
parameter order in wikitext, against Pars...Parsoid works hard to reduce dirty diffs, and one of those things is
keeping parameters in the same order they originally were in.
But in some cases we do actually want to change/standardize the
parameter order in wikitext, against Parsoid's wishes. We can do that
by tricking Parsoid into thinking the parameter names are different
by using wikitext that will subst into nothing.
This hack was figured out by 0xDeadbeef.https://gitlab.wikimedia.org/repos/mwbot-rs/mwbot/-/merge_requests/13Extract usable title from Parsoid HTML2023-01-08T18:18:10ZLegoktmExtract usable title from Parsoid HTMLAs noted in T324431, the `<title>` element can contain HTML markup
if `{{DISPLAYTITLE:...}}` is used. The only other metadata field that
contains the title is `<link rel="dc:isVersionOf" href="...">`.
Wikicode::title() now extracts the ...As noted in T324431, the `<title>` element can contain HTML markup
if `{{DISPLAYTITLE:...}}` is used. The only other metadata field that
contains the title is `<link rel="dc:isVersionOf" href="...">`.
Wikicode::title() now extracts the title from there, with the caveat
that it's in URL form rather than human form.
The main impact of this was that sticking the title into a URL
wouldn't work, causing functions like transform_to_wikitext() to
error with HTTP 400.
Bug: T326490