impress/app
Emi Dunn-Rankin fe9adb5766
Oops, fix mall spider bug, added by our HTTPS fix
Oh, yeah, shit, okay, when we set `self.url` like that, it's supposed to be the _canonical_ URL for the SWF, not our proxied one—this is the URL that's gonna go in the database.

We do proxying late in the process, like when we're actually setting up to download something, but for just referencing where the asset lives, we use `images.neopets.com`.

In this change, we revert the use of `NEOPETS_IMAGES_URL_ORIGIN`, but we _do_ update this to `https` for good measure. (We currently have both HTTP and HTTPS urls in the database, I guess neopets.com started serving different URLs at some point, this is probably the future! And anything interpreting these URLs will need to handle both cases anyway, unless we do some kind of migration update situation thing.)

We're migrating the incorrect assets with the following query (with the limit changed to match the number we currently see in the DB, just as a safety check):
```
UPDATE swf_assets SET url = REPLACE(url, 'http://images.neopets-asset-proxy.openneo.net', 'https://images.neopets.com') WHERE url LIKE 'http://images.neopets-asset-proxy.openneo.net%' ORDER BY id LIMIT 2000;
```
2022-08-23 03:04:54 -07:00
..
assets whoops, accept 1-digit donation amounts! 2018-01-20 17:55:21 -08:00
controllers new donate layout for post-2017 campaign 2018-01-18 17:14:02 -08:00
flex advanced search by pet type fit :) 2014-04-05 18:48:20 -05:00
helpers Update Neopia URLs to use HTTPS 2018-04-16 20:36:50 -07:00
mailers donation mailer 2014-09-10 14:32:54 -05:00
models Oops, fix mall spider bug, added by our HTTPS fix 2022-08-23 03:04:54 -07:00
views new donate layout for post-2017 campaign 2018-01-18 17:14:02 -08:00