diff options
author | Max Kostikov <max@kostikov.co> | 2018-10-30 15:38:19 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-10-30 15:38:19 +0100 |
commit | ec67e0ab22c0d3f2851b0c420636e76b54af1b79 (patch) | |
tree | 37458f3d0dfc461f6df0bf537ec41a9d2c09a50d /include | |
parent | 0f19627407ccd373afe1ce2d2347ea240f3195c1 (diff) | |
download | volse-hubzilla-ec67e0ab22c0d3f2851b0c420636e76b54af1b79.tar.gz volse-hubzilla-ec67e0ab22c0d3f2851b0c420636e76b54af1b79.tar.bz2 volse-hubzilla-ec67e0ab22c0d3f2851b0c420636e76b54af1b79.zip |
Beautiful embedding for Hubzilla links
Diffstat (limited to 'include')
-rwxr-xr-x | include/oembed.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php index 41ab001d3..5a37defb8 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -272,6 +272,7 @@ function oembed_fetch_url($embedurl){ } $j['embedurl'] = $embedurl; + $j['zrl'] = $is_matrix; // logger('fetch return: ' . print_r($j,true)); @@ -335,7 +336,7 @@ function oembed_format_object($j){ case "rich": { // not so safe.. - $ret.= $jhtml; + (($j['zrl']) ? $ret = $j['html'] : $ret.= $jhtml); }; break; } |