aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-13 20:46:37 -0700
committerfriendica <info@friendica.com>2012-03-13 20:46:37 -0700
commit4972d7ef6ee740f6eb09d8c7efa9a76ee40973c1 (patch)
treee27d165beb084a7fea27e9cd5b2a8a9c6da4b1f8 /include/oembed.php
parentde017d1ed76500c01fd11c8e1d36cf4ebd70172d (diff)
downloadvolse-hubzilla-4972d7ef6ee740f6eb09d8c7efa9a76ee40973c1.tar.gz
volse-hubzilla-4972d7ef6ee740f6eb09d8c7efa9a76ee40973c1.tar.bz2
volse-hubzilla-4972d7ef6ee740f6eb09d8c7efa9a76ee40973c1.zip
more work on filer, comment level and file tag removal
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 52068efc7..cc71f9757 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -1,6 +1,6 @@
<?php
function oembed_replacecb($matches){
- logger('oembedcb');
+// logger('oembedcb');
$embedurl=$matches[1];
$j = oembed_fetch_url($embedurl);
$s = oembed_format_object($j);
@@ -14,6 +14,9 @@ function oembed_fetch_url($embedurl){
$txt = Cache::get($embedurl);
+ // These media files should now be caught in bbcode.php
+ // left here as a fallback in case this is called from another source
+
$noexts = array("mp3","mp4","ogg","ogv","oga","ogm","webm");
$ext = pathinfo(strtolower($embedurl),PATHINFO_EXTENSION);