Original bug title: Add possiblity to query oldimage filtered by SHA1 with the API
where "oldimage" is a reference to the according database table
In an ideal world, there would be one method that tells me whether a file with a given sha1 was ever on a repo, returning the title where it was seen last.
Currently I am firing 3 requests; 2 against the mw API and 1 against my toollabs account at https://commons.wikimedia.org/w/index.php?title=Commons:User_scripts/File_Analyzer&withJS=MediaWiki:FileAnalyzer.js for each query. As you may already suspect, I'd like to replace the one to my labs account with one to the mw API.
This is useful for detecting copyright violations, [[WP:Sock puppetry]] and much more.
Version: unspecified
Severity: enhancement