hmans / indiepants

IndiePants, aka Pants Phase 2. A clean indieweb-like implementation.
13 stars 1 forks source link

Make `Document#from_url` also search for previous paths #37

Closed hmans closed 9 years ago

hmans commented 9 years ago

Document#from_url should fall back to looking in previous_paths if it can't find the document we're looking for directly via path, before creating a new instance. (The given URL may be an old URL used as a Webmention target by a site that isn't aware of the new URL yet.)

hmans commented 9 years ago

Fixed in the links branch -- from_url uses at_url, which falls back to previous_paths.