From 4776f62be9066a0e35a3b578a7502336effbb6a9 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 25 Jan 2015 12:41:08 -0800 Subject: recognise opus as an audio file --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 33017c011..5504dce7a 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -746,7 +746,7 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { $Text = preg_replace_callback("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4))\[\/video\]/ism", 'tryzrlvideo', $Text); } if (strpos($Text,'[/audio]') !== false) { - $Text = preg_replace_callback("/\[audio\](.*?\.(ogg|ogv|oga|ogm|webm|mp4|mp3))\[\/audio\]/ism", 'tryzrlaudio', $Text); + $Text = preg_replace_callback("/\[audio\](.*?\.(ogg|ogv|oga|ogm|webm|mp4|mp3|opus))\[\/audio\]/ism", 'tryzrlaudio', $Text); } // Try to Oembed -- cgit v1.2.3