diff --git a/src/server/neopets-assets.js b/src/server/neopets-assets.js index 179e40d5..dfe04641 100644 --- a/src/server/neopets-assets.js +++ b/src/server/neopets-assets.js @@ -37,7 +37,7 @@ async function loadAssetManifest(swfUrl) { const SWF_URL_PATTERN = /^https?:\/\/images\.neopets\.com\/cp\/(bio|items)\/swf\/(.+?)_([a-z0-9]+)\.swf$/; function convertSwfUrlToPossibleManifestUrls(swfUrl) { - const match = new URL(swfUrl, "http://images.neopets.com") + const match = new URL(swfUrl, "https://images.neopets.com") .toString() .match(SWF_URL_PATTERN); if (!match) { @@ -51,8 +51,8 @@ function convertSwfUrlToPossibleManifestUrls(swfUrl) { // TODO: There are a few potential manifest URLs in play! Long-term, we // should get this from modeling data. But these are some good guesses! return [ - `http://images.neopets.com/cp/${type}/data/${folders}/manifest.json`, - `http://images.neopets.com/cp/${type}/data/${folders}_${hash}/manifest.json`, + `https://images.neopets.com/cp/${type}/data/${folders}/manifest.json`, + `https://images.neopets.com/cp/${type}/data/${folders}_${hash}/manifest.json`, ]; } diff --git a/src/server/types/AppearanceLayer.js b/src/server/types/AppearanceLayer.js index 69aab867..9f041b6b 100644 --- a/src/server/types/AppearanceLayer.js +++ b/src/server/types/AppearanceLayer.js @@ -423,7 +423,7 @@ async function loadAndCacheAssetDataFromManifest(db, layer) { const format = asset.format; const assetUrls = asset.assetData.map( - (ad) => new URL(ad.path, "http://images.neopets.com") + (ad) => new URL(ad.path, "https://images.neopets.com") ); // In the case of JS assets, we want the *last* one in the list, because diff --git a/src/server/types/MutationsForSupport.js b/src/server/types/MutationsForSupport.js index 02f8e4fe..b0a123df 100644 --- a/src/server/types/MutationsForSupport.js +++ b/src/server/types/MutationsForSupport.js @@ -518,7 +518,7 @@ const resolvers = { { title: `🛠 ${colorName} ${speciesName}`, thumbnail: { - url: `http://pets.neopets.com/cp/${ + url: `https://pets.neopets.com/cp/${ petType.basicImageHash || petType.imageHash }/1/6.png`, height: 150, @@ -754,7 +754,7 @@ const resolvers = { { title: `🛠 ${colorName} ${speciesName}`, thumbnail: { - url: `http://pets.neopets.com/cp/${ + url: `https://pets.neopets.com/cp/${ petType.basicImageHash || petType.imageHash }/1/6.png`, height: 150, @@ -833,7 +833,7 @@ const resolvers = { { title: `🛠 ${colorName} ${speciesName}`, thumbnail: { - url: `http://pets.neopets.com/cp/${ + url: `https://pets.neopets.com/cp/${ petType.basicImageHash || petType.imageHash }/1/6.png`, height: 150,