From aa75e2496f427ce9a8f7b8d23d567435d370d3f3 Mon Sep 17 00:00:00 2001 From: Matt Dunn-Rankin Date: Sat, 19 Jun 2021 09:10:25 -0700 Subject: [PATCH] Use outfits.openneo-assets.net, bc petpage bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 😅 --- app/models/outfit.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/outfit.rb b/app/models/outfit.rb index 3ea14eac..a5d0e77a 100644 --- a/app/models/outfit.rb +++ b/app/models/outfit.rb @@ -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}" {