From 9ff27391d038a0803b0b96c5c8511c0a35ddb90d Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 6 Aug 2024 21:31:43 +0600 Subject: [PATCH] api/snapchat: don't return thumb for photos in a picker prevents saving low quality images with a long press --- api/src/processing/services/snapchat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/processing/services/snapchat.js b/api/src/processing/services/snapchat.js index 00efaa9d..bb7a3e74 100644 --- a/api/src/processing/services/snapchat.js +++ b/api/src/processing/services/snapchat.js @@ -57,10 +57,10 @@ async function getStory(username, storyId) { const defaultStory = data.props.pageProps.curatedHighlights[0]; if (defaultStory) { return { - picker: defaultStory.snapList.map((snap) => ({ + picker: defaultStory.snapList.map(snap => ({ type: snap.snapMediaType === 0 ? 'photo' : 'video', url: snap.snapUrls.mediaUrl, - thumb: snap.snapUrls.mediaPreviewUrl.value + thumb: snap.snapMediaType ==! 0 ? snap.snapUrls.mediaPreviewUrl.value : undefined, })) } }