[openstreetmap/openstreetmap-website] Switch user images to use Active Storage (#2296)

mmd notifications at github.com
Tue Jul 16 20:59:46 UTC 2019


We're currently discussing this on Slack, as it seems to affect some apps out there.

Previously, http://localhost:3000/api/0.6/user/1 returned absolute urls, e.g. `<img href="http://localhost:3000/attachments/users/images/000/000/001/large/4...`, while the new code only returns relative urls `"<img href="/rails/active_storage/representations/eyJfcmFpbHMi`.

Some apps create some funny urls based on that information, which point to their own domain, rather than osm.org -> image lookup fails.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2296#issuecomment-511984574
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190716/a97660c3/attachment.html>


More information about the rails-dev mailing list