mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +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];
|
||||
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 a new issue