From d06ddeb1cc6c1bbc7c1f297a917714002839cf85 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 24 Mar 2012 21:26:50 -0700 Subject: [PATCH 1/2] bug #346 - add oembed maxwidth to oembed request --- include/oembed.php | 5 +++-- 1 file 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); } From f1cb28774230cb69b9ce8ee5b32e4e2531aa586a Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 24 Mar 2012 21:50:04 -0700 Subject: [PATCH 2/2] bug #329 - compress the plugin list on the friendica info page --- mod/friendica.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/mod/friendica.php b/mod/friendica.php index ab92e31ed..d5dad9448 100755 --- a/mod/friendica.php +++ b/mod/friendica.php @@ -51,15 +51,20 @@ function friendica_content(&$a) { $o .= '

'; if(count($a->plugins)) { - $o .= '

' . t('Installed plugins/addons/apps') . '

'; - $o .= ''; + $o .= '

' . t('Installed plugins/addons/apps:') . '

'; + $sorted = $a->plugins; + $s = ''; + sort($sorted); + foreach($sorted as $p) { + if(strlen($p)) { + if(strlen($s)) $s .= ', '; + $s .= $p; + } + } + $o .= '
' . $s . '
'; } else - $o .= '

' . t('No installed plugins/addons/apps'); + $o .= '

' . t('No installed plugins/addons/apps') . '

'; call_hooks('about_hook', $o);