aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-25 00:59:25 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-25 00:59:25 -0400
commit5bd4f62210c9672dd7d502cf8a74ee34727536fc (patch)
tree1c5d43999b433007ff19bd5c591a1c9b3b027e82 /include
parent8a6c407282fe10f676f08f21e28647a5c8794e11 (diff)
parentf1cb28774230cb69b9ce8ee5b32e4e2531aa586a (diff)
downloadvolse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.tar.gz
volse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.tar.bz2
volse-hubzilla-5bd4f62210c9672dd7d502cf8a74ee34727536fc.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: bug #329 - compress the plugin list on the friendica info page bug #346 - add oembed maxwidth to oembed request * master:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/oembed.php5
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);
}