aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-15 01:29:58 -0700
committerFriendika <info@friendika.com>2011-08-15 01:29:58 -0700
commit9cd77b56ab8253b9c664fe18b8cf6def647f9ca8 (patch)
tree03018c5f070c7a2fc3599ea863bb4ba4e4cb2fcd /include/oembed.php
parent5b24050875bc0b2edfee92005bba7c5ef7a17cab (diff)
downloadvolse-hubzilla-9cd77b56ab8253b9c664fe18b8cf6def647f9ca8.tar.gz
volse-hubzilla-9cd77b56ab8253b9c664fe18b8cf6def647f9ca8.tar.bz2
volse-hubzilla-9cd77b56ab8253b9c664fe18b8cf6def647f9ca8.zip
temporarily disable oembed
Diffstat (limited to 'include/oembed.php')
-rw-r--r--include/oembed.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 06a37d8e4..e86275e61 100644
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -7,6 +7,7 @@ function oembed_replacecb($matches){
function oembed_fetch_url($embedurl){
+return;
$r = q("SELECT v FROM `cache` WHERE k='%s'",
dbesc($embedurl));
@@ -17,6 +18,8 @@ function oembed_fetch_url($embedurl){
// try oembed autodiscovery
$html_text = fetch_url($embedurl);
+ if(! $html_text)
+ return;
$dom = @DOMDocument::loadHTML($html_text);
if ($dom){
$xpath = new DOMXPath($dom);