From 0176b7f038ee07b6c12c2f7e9b57e7a3a81c2d13 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 2 Mar 2019 11:28:48 -0500 Subject: [PATCH] more --- contrib/templates/placebo/post.mustache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/templates/placebo/post.mustache b/contrib/templates/placebo/post.mustache index bd0391b..bef7af3 100644 --- a/contrib/templates/placebo/post.mustache +++ b/contrib/templates/placebo/post.mustache @@ -52,11 +52,12 @@ var e = document.getElementById("post_body_{{post.PostHash}}"); if(e) { var u = new URL(j[0].ReferencedURI); + console.log(u); if(u.protocol === "https:" || u.protocol === "http:") { var link = document.createElement("a"); link.href = u.toString(); link.innerText = "[Link]"; - e.appendChild(txt); + e.appendChild(link); } } else throw "wut";