Page MenuHomePhabricator

pageterms query api module broken for pages that are linked to wikidata items from commons
Open, Needs TriagePublic

Description

https://commons.wikimedia.org/wiki/(1)_Ceres and https://de.wikipedia.org/wiki/(1)_Ceres link to the same wikidata item.
https://www.wikidata.org/wiki/Q596

The API responses of the pageterms API should be the same:

But they are not

This is due to a condition in WikibaseClient.php
Identified in https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/487967/6/client/WikibaseClient.php

The code checks for WB_VERSION, but commons is now both a repo and client.
This code needs to change somehow to account for that