Skip to content

Commit c9ec9e8

Browse files
committed
support post preview video
1 parent b7fc05f commit c9ec9e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Post.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ const PostComponent = ({ post }: { post: Post }) => {
112112
</a>
113113
</p>
114114
</div>
115+
) : post.preview?.reddit_video_preview ? (
116+
<PostPreview preview={post.preview} />
115117
) : post.secure_media_embed?.media_domain_url ? (
116118
<SecureMediaEmbed
117119
url_overridden_by_dest={post.url_overridden_by_dest}

0 commit comments

Comments
 (0)