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.
This commit is contained in:
Dessalines 2025-01-06 23:06:12 -05:00 committed by GitHub
parent 0b97a4350d
commit 8e545f4914
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,7 +245,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
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 (
<div className="ratio ratio-16x9 mt-3">
<video