Tgr added a comment.

`?` does not come from any internal logic in CommonsMetadata - if the author or 
source is not specified, the relevant key will simply be missing from the 
response:

- 
https://commons.wikimedia.org/w/api.php?action=query&titles=File%3ABathsOfCaracalla.jpg&prop=imageinfo&iiprop=extmetadata&format=jsonfm
- 
https://commons.wikimedia.org/w/api.php?action=query&titles=File%3ADomusAurea.jpg&prop=imageinfo&iiprop=extmetadata&format=jsonfm

The required logic is: `AttributionRequired` is true(-ish - 
https://phabricator.wikimedia.org/T86726) but `Artist` and `Attribution` are 
both missing. (This assumes you are using the Attribution field, which did not 
exist at the time the above patch was made against OCG.) I can put this logic 
into CMD if you prefer that.


TASK DETAIL
  https://phabricator.wikimedia.org/T75130

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Tgr
Cc: Tgr, Matanya, Vibhabamba, JKatzWMF, Ricordisamoa, Elitre, Nemo_bis, saper, 
cscott, LuisV_WMF, wikibugs-l-list, Wikidata-bugs, aude, Bawolff, 
Fabrice_Florin, Krenair, Malyacko, Mjbmr, P.Copp



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to