ForeignApiRepo has gotten a bit of work in the past week. I cleaned up some long-standing work I had lying around, and as a result got the thumb caching integrated with the normal thumb paths (ie: in /thumbs/ where they belong). Also, as of tonight, we have findBySha1() functionality as well.

This means local wikis using a foreign api repository (like commons or enwiki) can make use of the sha1-based dupe checks. Score one for catching up functionality that the rest of the FileRepo has had for awhile now ;-)

Now if only I could make mass-lookups not suck…

[UPDATE: I had to remove the findBySha1 functionality temporarily, it broke normal image metadata fetching. The reversion is here, if anyone cares to help debug what went wrong]