From 382aa1430e662ca572db85b360341db4b298768b Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 21 Jan 2021 14:59:56 -0800 Subject: [PATCH] Support new SVG URLs in outfit thumbnails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Huh, I guess TNT changed the folder name from `object` to `items` for new SVGs? Like, some of the old SVGs still are in `objects`, but… Hmm, I wonder if I should re-run old manifests at some point? I wonder if maybe like, _everything_ changed, and we're just holding onto old URLs now… --- api/outfitImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/outfitImage.js b/api/outfitImage.js index 60dd33b..3f283d0 100644 --- a/api/outfitImage.js +++ b/api/outfitImage.js @@ -11,7 +11,7 @@ const { renderOutfitImage } = require("../src/server/outfit-images"); const VALID_LAYER_URLS = [ /^https:\/\/impress-asset-images\.s3\.amazonaws\.com\/(biology|object)\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[0-9]+\/(150|300)x(150|300)\.png(\?[a-zA-Z0-9_-]+)?$/, - /^http:\/\/images\.neopets\.com\/cp\/(bio|object)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+\.svg$/, + /^http:\/\/images\.neopets\.com\/cp\/(bio|object|items)\/data\/[0-9]{3}\/[0-9]{3}\/[0-9]{3}\/[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+\.svg$/, ]; async function handle(req, res) {