From f26c698f4ae4b1fbc42d7f0ef149c64953439521 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 31 Jan 2016 16:33:25 -0800 Subject: add zid --- include/oembed.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/oembed.php') 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 = 'thumbnail

'; } -- cgit v1.2.3