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:
- https://commons.wikimedia.org/w/api.php?action=query&prop=pageterms&titles=(1)%20Ceres
- https://de.wikipedia.org/w/api.php?action=query&prop=pageterms&titles=(1)%20Ceres
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