From: Michael Date: Thu, 29 Feb 2024 07:40:36 +0000 (+0000) Subject: Use the exact embed URLs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=40e882004eacb3cd6d682a397b47a6c55beae8c0;p=friendica.git Use the exact embed URLs --- diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index c75634a605..574b9987fc 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1788,7 +1788,7 @@ class BBCode $text = self::normalizeVideoLinks($text); // Youtube extensions - if ($try_oembed && OEmbed::isAllowedURL('https://www.youtube.com')) { + if ($try_oembed && OEmbed::isAllowedURL('https://www.youtube.com/embed/')) { $text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", '', $text); } else { $text = preg_replace( @@ -1799,7 +1799,7 @@ class BBCode } // Vimeo extensions - if ($try_oembed && OEmbed::isAllowedURL('https://vimeo.com')) { + if ($try_oembed && OEmbed::isAllowedURL('https://player.vimeo.com/video')) { $text = preg_replace("/\[vimeo\]([0-9]+)(.*?)\[\/vimeo\]/ism", '', $text); } else { $text = preg_replace(