The card should detect if comment.link is youtube, and if it is, it should use the embed code instead of the regular image. You need to extract the youtube video id from a regular link and put it after /embed/ https://www.youtube.com/embed/${youtubeVideoId}?feature=oembed&enablejsapi=1
The code for youtube embeds is this
The card should detect if comment.link is youtube, and if it is, it should use the embed code instead of the regular image. You need to extract the youtube video id from a regular link and put it after /embed/
https://www.youtube.com/embed/${youtubeVideoId}?feature=oembed&enablejsapi=1