aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-31 16:33:25 -0800
committerredmatrix <git@macgirvin.com>2016-01-31 16:33:25 -0800
commitf26c698f4ae4b1fbc42d7f0ef149c64953439521 (patch)
treec16299a83e5dc69c4fc7e0d195e8725878347499
parenta341c889b751055e90eba9b7a14da5b7cd0e8032 (diff)
downloadvolse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.tar.gz
volse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.tar.bz2
volse-hubzilla-f26c698f4ae4b1fbc42d7f0ef149c64953439521.zip
add zid1.2
-rwxr-xr-xinclude/oembed.php4
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 />';
}