more
This commit is contained in:
parent
d051ac77f7
commit
686cfb7831
@ -44,24 +44,24 @@
|
|||||||
<span id="post_body_{{post.PostHash}}" class="message_span">{{{post.RenderBody}}}</span>
|
<span id="post_body_{{post.PostHash}}" class="message_span">{{{post.RenderBody}}}</span>
|
||||||
{{#post.OP}}
|
{{#post.OP}}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var j = fetch("/api/find?hash={{post.PostHash}}").then(function(resp) {
|
fetch("/api/find?hash={{post.PostHash}}").then(function(resp) {
|
||||||
return resp.json();
|
var j= resp.json();
|
||||||
}).catch(function(resp) {
|
console.log(j);
|
||||||
return [];
|
if (j.legnth) {
|
||||||
});
|
var e = document.getElementById("post_body_{{post.PostHash}}");
|
||||||
console.log(j);
|
if(e) {
|
||||||
if (j.legnth) {
|
var u = new URL(j[0].ReferencedURI);
|
||||||
var e = document.getElementById("post_body_{{post.PostHash}}");
|
if(u.protocol === "https" || u.protocol === "http") {
|
||||||
if(e) {
|
var link = document.createElement("a");
|
||||||
var u = new URL(j[0].ReferencedURI);
|
link.href = u.toString();
|
||||||
if(u.protocol === "https" || u.protocol === "http") {
|
link.innerText = "[Link]";
|
||||||
var link = document.createElement("a");
|
e.appendChild(txt);
|
||||||
link.href = u.toString();
|
}
|
||||||
link.innerText = "[Link]";
|
|
||||||
e.appendChild(txt);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}).catch(function(resp) {
|
||||||
|
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
{{/post.OP}}
|
{{/post.OP}}
|
||||||
<br style="clear: both;" />
|
<br style="clear: both;" />
|
||||||
|
Reference in New Issue
Block a user