Skip to content

Commit

Permalink
Fix Snap sharing with weird track names C-2081 (#3176)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikki Kang <kangaroo233@gmail.com>
  • Loading branch information
nicoback2 and nicoback committed Apr 6, 2023
1 parent 3ee5346 commit b5485bd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import {
pickTwoMostDominantAndVibrant
} from 'app/utils/dominantColors'
import { reportToSentry } from 'app/utils/reportToSentry'
import { getTrackRoute } from 'app/utils/routes'
import { useThemeColors } from 'app/utils/theme'

import { NativeDrawer } from '../drawer'
Expand Down Expand Up @@ -258,7 +259,7 @@ export const useShareToStory = ({
rotationDegreesInClockwise: 0,
isAnimated: false
},
attachmentUrl: `${Config.AUDIUS_URL}${trackPermalink}`
attachmentUrl: trackPermalink
}
await CreativeKit.shareVideo(videoContent)
},
Expand Down Expand Up @@ -419,7 +420,7 @@ export const useShareToStory = ({
await pasteToSnapchatApp(
videoUri,
`file://${stickerUri}`,
content.track.permalink
encodeURI(getTrackRoute(content.track, true))
)
} else if (platform === 'tiktok') {
pasteToTikTokApp(`${storyVideoPath}`)
Expand Down

0 comments on commit b5485bd

Please sign in to comment.