Funny thing. Since I’ve switched to SimplePie, I see a lot more “image previews,” thanks the `enclosure` tag. Now, if only I could get it to parse `media:content` …



And that’s that, at least for images.

Also "fixed" this weird thing where proxied images would return a 404 but still show fine. Turns out it had to do with URL-encoded _original URLs_ (at the end of a URL path). Either the browser or server would see (or send) a 404 and then decode these URLs and retry and get a proper response, but the status code would be 404 nonetheless, even when I literally returned `header('HTTP/1.1 200 OK'); exit;`. No URL forwarding or anything going on either.

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!