From 770b9359a40d3bf8f19dc029487f3a5cc09661d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Apr 2021 11:45:03 +0000 Subject: [PATCH] Harmonize the video display --- src/Content/Text/BBCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 6c46163f7..437330ce7 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -50,7 +50,7 @@ use Friendica\Util\XML; class BBCode { // Update this value to the current date whenever changes are made to BBCode::convert - const VERSION = '2021-03-21'; + const VERSION = '2021-04-05'; const INTERNAL = 0; const API = 2; @@ -1669,7 +1669,7 @@ class BBCode if ($try_oembed) { // html5 video and audio $text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4).*?)\[\/video\]/ism", - '', $text); + '', $text); $text = preg_replace_callback("/\[video\](.*?)\[\/video\]/ism", $try_oembed_callback, $text); $text = preg_replace_callback("/\[audio\](.*?)\[\/audio\]/ism", $try_oembed_callback, $text);