aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 />';
}