Archived
1
0
This commit is contained in:
Jeff Becker 2019-03-02 11:20:48 -05:00
parent d051ac77f7
commit 686cfb7831
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -44,11 +44,8 @@
<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) {
return [];
});
console.log(j); console.log(j);
if (j.legnth) { if (j.legnth) {
var e = document.getElementById("post_body_{{post.PostHash}}"); var e = document.getElementById("post_body_{{post.PostHash}}");
@ -62,6 +59,9 @@
} }
} }
} }
}).catch(function(resp) {
});
</script> </script>
{{/post.OP}} {{/post.OP}}
<br style="clear: both;" /> <br style="clear: both;" />