Beautiful embedding for Hubzilla links

This commit is contained in:
Max Kostikov 2018-10-30 15:38:19 +01:00
parent 0f19627407
commit ec67e0ab22

View File

@ -272,6 +272,7 @@ function oembed_fetch_url($embedurl){
} }
$j['embedurl'] = $embedurl; $j['embedurl'] = $embedurl;
$j['zrl'] = $is_matrix;
// logger('fetch return: ' . print_r($j,true)); // logger('fetch return: ' . print_r($j,true));
@ -335,7 +336,7 @@ function oembed_format_object($j){
case "rich": { case "rich": {
// not so safe.. // not so safe..
$ret.= $jhtml; (($j['zrl']) ? $ret = $j['html'] : $ret.= $jhtml);
}; break; }; break;
} }