Skip to content

Commit

Permalink
feat(post source): find video source with poster
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jan 15, 2024
1 parent d3c1847 commit 01b4c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/pages/posts/post/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ function onClickLongTag(tag: Tag) {
/>

<PostSource
v-if="post.media_type === 'image'"
:post-file-url="mediaFile.file"
v-if="post.media_type !== 'unknown'"
:post-file-url="post.media_type === 'image' ? mediaFile.file : mediaFile.posterFile"
:post-sources="post.sources"
/>

Expand Down

0 comments on commit 01b4c08

Please sign in to comment.