mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2025-01-15 22:45:50 +00:00
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:
parent
0b97a4350d
commit
8e545f4914
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue