Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add podcasts to spotify embeds (#5514)

authored by

Hailey and committed by
GitHub
dd2fedb2 c7b48cbd

+16 -2
+16 -2
src/lib/strings/embed-player.ts
··· 1 1 import {Dimensions} from 'react-native' 2 2 3 - import {isSafari} from 'lib/browser' 4 - import {isWeb} from 'platform/detection' 3 + import {isSafari} from '#/lib/browser' 4 + import {isWeb} from '#/platform/detection' 5 5 6 6 const {height: SCREEN_HEIGHT} = Dimensions.get('window') 7 7 ··· 183 183 type: 'spotify_song', 184 184 source: 'spotify', 185 185 playerUri: `https://open.spotify.com/embed/track/${id ?? idOrType}`, 186 + } 187 + } 188 + if (typeOrLocale === 'episode' || idOrType === 'episode') { 189 + return { 190 + type: 'spotify_song', 191 + source: 'spotify', 192 + playerUri: `https://open.spotify.com/embed/episode/${id ?? idOrType}`, 193 + } 194 + } 195 + if (typeOrLocale === 'show' || idOrType === 'show') { 196 + return { 197 + type: 'spotify_song', 198 + source: 'spotify', 199 + playerUri: `https://open.spotify.com/embed/show/${id ?? idOrType}`, 186 200 } 187 201 } 188 202 }