aboutsummaryrefslogtreecommitdiffstats
path: root/mod/parse_url.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:37:09 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:37:09 +0200
commit7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f (patch)
tree86a9a1a233ec5e09b6734b916fff834e295a3fde /mod/parse_url.php
parent453a0cff3875ca1cb3587b1fa83ad5b0439faae3 (diff)
downloadvolse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.tar.gz
volse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.tar.bz2
volse-hubzilla-7c5a7a94d4d224d23f7c922b86a60a6ffe53fc9f.zip
Add oembed user option for use oembed instead of standard yotube embedding.
Remove global option and parse_url use of oembed.
Diffstat (limited to 'mod/parse_url.php')
-rw-r--r--mod/parse_url.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 8e1684732..15a6aced0 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -1,7 +1,6 @@
<?php
require_once('library/HTML5/Parser.php');
-require_once('include/oembed.php');
function parse_url_content(&$a) {
@@ -26,15 +25,6 @@ function parse_url_content(&$a) {
}
if($url) {
- // fetch link with oembed
- if ($a->config['system']['embed_all']){
- $j = oembed_fetch_url($url);
- if ($j->type!="error"){
- echo oembed_format_object($j);
- killme();
- }
- }
-
$s = fetch_url($url);
} else {
echo '';
@@ -106,4 +96,4 @@ function parse_url_content(&$a) {
echo sprintf($template,$url,$title,$text);
killme();
-} \ No newline at end of file
+}