Skip to content

Commit 0c4cd82

Browse files
authored
fix(lightbox): allow Instagram videos in VideoSlide component (#714)
1 parent 455f598 commit 0c4cd82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/lightbox/LightboxRenderers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export const VideoSlide = ({ bookmark, isActive }: SlideProps) => (
7070
<VideoPlayer
7171
isActive={isActive ?? false}
7272
src={
73-
bookmark?.type === tweetType && bookmark?.meta_data?.video_url
73+
(bookmark?.type === tweetType || bookmark?.type === "instagram") &&
74+
bookmark?.meta_data?.video_url
7475
? bookmark?.meta_data?.video_url
7576
: (bookmark?.url ?? "")
7677
}

0 commit comments

Comments
 (0)