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:
parent
aceffc56ab
commit
aa75e2496f
1 changed files with 3 additions and 2 deletions
|
@ -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}"
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue