Skip to content

Commit

Permalink
Use thumbnail_url as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed May 11, 2024
1 parent fe1a65d commit 5b7f48d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/features/media/gallery/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ const Media = forwardRef<
export default memo(Media);

export function getPostMedia(post: PostView): string | undefined {
if (post.post.thumbnail_url) return post.post.thumbnail_url;

if (post.post.url && isUrlMedia(post.post.url)) {
return post.post.url;
}
Expand Down

0 comments on commit 5b7f48d

Please sign in to comment.