diff options
author | redmatrix <git@macgirvin.com> | 2016-01-31 16:33:25 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-31 16:33:25 -0800 |
commit | f26c698f4ae4b1fbc42d7f0ef149c64953439521 (patch) | |
tree | c16299a83e5dc69c4fc7e0d195e8725878347499 | |
parent | a341c889b751055e90eba9b7a14da5b7cd0e8032 (diff) | |
download | volse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.tar.gz volse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.tar.bz2 volse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.zip |
add zid1.2
-rwxr-xr-x | include/oembed.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/oembed.php b/include/oembed.php index b95f93f91..2d3e0d3f9 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -173,6 +173,10 @@ function oembed_format_object($j){ }; break; case "link": { if($j->thumbnail_url) { + if(is_matrix_url($embedurl)) { + $embedurl = zid($embedurl); + $j->thumbnail_url = zid($j->thumbnail_url); + } $ret = '<a href="' . $embedurl . '" ><img src="' . $j->thumbnail_url . '" alt="thumbnail" /></a><br /><br />'; } |