aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-10-31 09:39:10 +0100
committerMario Vavti <mario@mariovavti.com>2018-10-31 09:39:10 +0100
commit0252bac4ba661bb291ef075325f59ca354e02a14 (patch)
tree2e50f30513c0c80b274d4f77a810768cf4de7a96 /include
parent7e1f431eca7a8aa68fc0badfaa88e88de3ba094c (diff)
parentb468069875867d961abf7f105cc5fa3f247ac675 (diff)
downloadvolse-hubzilla-0252bac4ba661bb291ef075325f59ca354e02a14.tar.gz
volse-hubzilla-0252bac4ba661bb291ef075325f59ca354e02a14.tar.bz2
volse-hubzilla-0252bac4ba661bb291ef075325f59ca354e02a14.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include')
-rwxr-xr-xinclude/oembed.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 41ab001d3..e5557dc11 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,11 @@ function oembed_format_object($j){
case "rich": {
// not so safe..
- $ret.= $jhtml;
+ if($j['zrl']) {
+ $ret = ((preg_match('/^<div[^>]+>(.*?)<\/div>$/is',$j['html'],$o)) ? $o[1] : $j['html']);
+ } else {
+ $ret.= $jhtml;
+ };
}; break;
}