api: Update QueryFilearchive to provide information to everyone
authorVincent Privat <vincent.privat@gmail.com>
Sun, 18 Aug 2019 14:21:40 +0000 (16:21 +0200)
committerVincent Privat <vincent.privat@gmail.com>
Fri, 6 Sep 2019 20:21:58 +0000 (22:21 +0200)
commit4d2965cf72fb9975e010ae68537ae01c62e97047
treefe525ec733e79da21605f3777097d254399f0ebe
parentbae0adcd729c085d1222e8dc900ea1eabd2d1e7e
api: Update QueryFilearchive to provide information to everyone

Wikimedia Commons needs the ability to quickly detect, given a SHA-1, if
a file has been previously uploaded but was deleted later. This is
currently not possible in an efficient manner because the fa_sha1
field of the public database replica is not indexed, and this API
requires the 'deletedhistory' user right.

Effectively removes the 'deletedhistory' requirement, as this API does
not expose more information than the public toolforge database replica.

Bug : T60993
Change-Id: I2e9e1d50b6db9fa17acaf14d0975b6e9145a411e
RELEASE-NOTES-1.34
includes/api/ApiQueryFilearchive.php
includes/api/i18n/en.json
includes/api/i18n/qqq.json