From 7bef1f3b9a57efb7f1c73609c823e3ace7af377d Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 12 Oct 2022 12:35:20 -0700 Subject: [PATCH] Use imageUrlV2 in outfit thumbnails Without this, 150x150 and 300x300 outfit thumbnails would fail to render new item layers where we didn't have an AWS image layer. Now, they correctly render the new stuff! I tested this with the new "Spooky Stitches Markings" on the Grarrl, which has a blank image in AWS, but works correctly in the new code by loading the image from neopets.com! --- pages/api/outfitImage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/api/outfitImage.js b/pages/api/outfitImage.js index 78e1c07..5eb63f2 100644 --- a/pages/api/outfitImage.js +++ b/pages/api/outfitImage.js @@ -167,14 +167,14 @@ async function loadLayerUrlsForSavedOutfit(outfitId, size) { petAppearance { layers { id - imageUrl(size: $size) + imageUrl: imageUrlV2(idealSize: $size) } ...PetAppearanceForGetVisibleLayers } itemAppearances { layers { id - imageUrl(size: $size) + imageUrl: imageUrlV2(idealSize: $size) } ...ItemAppearanceForGetVisibleLayers }