1
0
Fork 0
forked from OpenNeo/impress

Use outfits.openneo-assets.net, bc petpage bug

There's a bug on Neopets.com that breaks links and images for *.openneo.net, on petpages specifically.

So, we've registered a new domain, and we're using that to serve outfit images now.

I'm a bit hesitant to add a new domain name to our like, permanent URL surface area, lol… but I'm not hearing back from TNT, and I already closed the doors on S3, so… here we are, whatever 😅
This commit is contained in:
Emi Matchu 2021-06-19 09:10:25 -07:00 committed by GitHub
parent aceffc56ab
commit aa75e2496f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,8 +56,9 @@ class Outfit < ActiveRecord::Base
def image_versions
# Now, instead of using the saved outfit to S3, we're using out the
# DTI 2020 API + CDN cache version.
base_url = "https://impress-outfit-images.openneo.net/outfits" +
# DTI 2020 API + CDN cache version. We use openneo-assets.net to get
# around a bug on Neopets petpages with openneo.net URLs.
base_url = "https://outfits.openneo-assets.net/outfits" +
"/#{CGI.escape id.to_s}" +
"/v/#{CGI.escape updated_at.to_i.to_s}"
{