From 2e0aab471acde4ac118990b64ac1216b47113e5f Mon Sep 17 00:00:00 2001 From: Raul Duarte Pereira Date: Tue, 10 Oct 2023 14:34:45 -0300 Subject: [PATCH] CU-86a12tgr6 - Hotfix - Webp vulnerability --- app/actions/nftGalleryActions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/actions/nftGalleryActions.js b/app/actions/nftGalleryActions.js index 8ed479193..4cd753168 100644 --- a/app/actions/nftGalleryActions.js +++ b/app/actions/nftGalleryActions.js @@ -54,8 +54,8 @@ export async function parseGhostMarketResults({ if (!assets || !assets.length) return DEFAULT_NFT_GALLERY_RESULTS(previousResults) - const results = assets.map( - ({ metadata, collection, contract, tokenId }) => ({ + const results = assets + .map(({ metadata, collection, contract, tokenId }) => ({ metadata: { description: metadata.description, mediaUri: metadata.mediaUri, @@ -67,8 +67,8 @@ export async function parseGhostMarketResults({ collection: { name: collection.name, }, - }), - ) + })) + .filter(asset => !asset.metadata.mediaType.includes('webp')) return { results: previousResults.concat(results),