From 8e545f4914bac23be5ac280f82df893fb62d1d37 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 6 Jan 2025 23:06:12 -0500 Subject: [PATCH] Using video tag for embed video urls that are videos. (#2883) * Using video tag for embed video urls that are videos. - Fixes #2826 * Better check. --- src/shared/components/post/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/post/post-listing.tsx b/src/shared/components/post/post-listing.tsx index a3c92306..c775e394 100644 --- a/src/shared/components/post/post-listing.tsx +++ b/src/shared/components/post/post-listing.tsx @@ -245,7 +245,7 @@ export class PostListing extends Component { const url = post.url; // if direct video link or embedded video link - if (url && isVideo(url)) { + if ((url && isVideo(url)) || isVideo(post.embed_video_url ?? "")) { return (