mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
api/snapchat: don't return thumb for photos in a picker
prevents saving low quality images with a long press
This commit is contained in:
parent
72a21b203e
commit
9ff27391d0
@ -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,
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user