wikimedia / mediawiki-gadgets-RTRC

Mirror of https://gerrit.wikimedia.org/g/mediawiki/gadgets/RTRC.
https://meta.wikimedia.org/wiki/RTRC
MIT License
26 stars 11 forks source link

Update to use v3 of ORES API #116

Closed he7d3r closed 8 months ago

he7d3r commented 8 months ago

As reported in https://github.com/Krinkle/mw-gadget-rtrc/issues/109, the API v1 is deprecated. Consequently, the requests return the following instead of the scores:

{
    "detail": {
        "error": {
            "code": "not found",
            "message": "ORES support for v1 has been deprecated. Please use v3."
        }
    }
}

This pr updates the code to use the new format.

he7d3r commented 8 months ago

Hummm... Looks like I was a few minutes late: https://github.com/Krinkle/mw-gadget-rtrc/commit/ef2a8166b501ccc30608d145f9d0f6d88a4e8f13

Krinkle commented 8 months ago

@he7d3r Thanks anyway!

I've now tagged and uploaded the v1.4.6 release to mediawiki.org. Should be live for everyone within a minute or two!