diff options
author | zottel <github@zottel.net> | 2012-03-27 13:20:59 +0200 |
---|---|---|
committer | zottel <github@zottel.net> | 2012-03-27 13:20:59 +0200 |
commit | fb817a29a934a68f194a42c29d3ed11da2da558f (patch) | |
tree | fdeb88be9d8545ead92c5d63a9d9af7f6a7ccc23 /include/oembed.php | |
parent | fabd4f4d2ebd9d1623db7e20d6e4e8f6bd0611ff (diff) | |
parent | 928e6c7ef78d251429a7d5c1fd4fdb8e6c282d41 (diff) | |
download | volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.tar.gz volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.tar.bz2 volse-hubzilla-fb817a29a934a68f194a42c29d3ed11da2da558f.zip |
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-x | include/oembed.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/oembed.php b/include/oembed.php index cc71f9757..1f45d2814 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -38,7 +38,8 @@ function oembed_fetch_url($embedurl){ $entries = $xpath->query("//link[@type='application/json+oembed']"); foreach($entries as $e){ $href = $e->getAttributeNode("href")->nodeValue; - $txt = fetch_url($href); + $txt = fetch_url($href . '&maxwidth=425'); + break; } } } @@ -46,7 +47,7 @@ function oembed_fetch_url($embedurl){ if ($txt==false || $txt==""){ // try oohembed service - $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl); + $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl).'&maxwidth=425'; $txt = fetch_url($ourl); } |