浏览代码

Unfurls fix

JC Brand 4 年之前
父节点
当前提交
2bbb889196
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shared/chat/templates/unfurl.js

+ 1 - 1
src/shared/chat/templates/unfurl.js

@@ -14,7 +14,7 @@ function isValidImage (image) {
 
 const tpl_url_wrapper = (o, wrapped_template) =>
     (o.url && isValidURL(o.url)) ?
-        html`<a href="${o.url}" target="_blank" rel="noopener">${wrapped_template(o)}</a>` : tpl_image(o);
+        html`<a href="${o.url}" target="_blank" rel="noopener">${wrapped_template(o)}</a>` : wrapped_template(o);
 
 const tpl_image = (o) => html`<img class="card-img-top" src="${o.image}" @load=${o.onload}/>`;