mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +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
1 changed files with 2 additions and 2 deletions
|
@ -57,10 +57,10 @@ async function getStory(username, storyId) {
|
||||||
const defaultStory = data.props.pageProps.curatedHighlights[0];
|
const defaultStory = data.props.pageProps.curatedHighlights[0];
|
||||||
if (defaultStory) {
|
if (defaultStory) {
|
||||||
return {
|
return {
|
||||||
picker: defaultStory.snapList.map((snap) => ({
|
picker: defaultStory.snapList.map(snap => ({
|
||||||
type: snap.snapMediaType === 0 ? 'photo' : 'video',
|
type: snap.snapMediaType === 0 ? 'photo' : 'video',
|
||||||
url: snap.snapUrls.mediaUrl,
|
url: snap.snapUrls.mediaUrl,
|
||||||
thumb: snap.snapUrls.mediaPreviewUrl.value
|
thumb: snap.snapMediaType ==! 0 ? snap.snapUrls.mediaPreviewUrl.value : undefined,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue