kopia lustrzana https://github.com/friendica/friendica
fix oembed video thumb display ratio
rodzic
40ea48bdab
commit
2905df527f
|
@ -56,9 +56,11 @@ function oembed_format_object($j){
|
||||||
switch ($j->type) {
|
switch ($j->type) {
|
||||||
case "video": {
|
case "video": {
|
||||||
if (isset($j->thumbnail_url)) {
|
if (isset($j->thumbnail_url)) {
|
||||||
/*$tw = (isset($j->thumbnail_width)) ? $j->thumbnail_width:200;
|
$tw = (isset($j->thumbnail_width)) ? $j->thumbnail_width:200;
|
||||||
$th = (isset($j->thumbnail_height)) ? $j->thumbnail_height:180;*/
|
$th = (isset($j->thumbnail_height)) ? $j->thumbnail_height:180;
|
||||||
$tw=150; $th=120;
|
$tr = $tw/$th;
|
||||||
|
|
||||||
|
$th=120; $tw = $th*$tr;
|
||||||
$tpl=get_markup_template('oembed_video.tpl');
|
$tpl=get_markup_template('oembed_video.tpl');
|
||||||
$ret.=replace_macros($tpl, array(
|
$ret.=replace_macros($tpl, array(
|
||||||
'$embedurl'=>$embedurl,
|
'$embedurl'=>$embedurl,
|
||||||
|
|
Ładowanie…
Reference in New Issue