Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.

74 lines
3.0 KiB
Plaintext
Raw Normal View History

2017-04-18 19:42:46 -04:00
<div id="{{post.PostHash}}"
2017-04-19 08:17:05 -04:00
{{#post.OP}}
2017-04-19 11:05:32 -04:00
class="messageroot post"
2017-04-19 08:17:05 -04:00
{{/post.OP}}
{{^post.OP}}
2017-04-19 11:05:32 -04:00
class="message post"
2017-04-19 08:17:05 -04:00
{{/post.OP}}
2017-07-03 18:04:02 -04:00
data-name="{{post.Name}}"
2017-04-18 19:42:46 -04:00
data-frontend="{{post.Frontend}}"
data-newsgroup="{{post.Board}}"
data-msgid="{{post.MessageID}}"
data-msgidhash="{{post.PostHash}}"
data-rootmsgid="{{post.Reference}}"
data-rootmsgidhash="{{post.ReferenceHash}}"
2017-07-30 18:20:14 -04:00
data-pubkey="{{post.PubkeyHex}}"
2017-04-18 19:42:46 -04:00
{{#post.Sage}}
data-sage="1"
{{/post.Sage}}
{{#post.IsI2P}}
data-origin="i2p"
{{/post.IsI2P}}
{{#post.IsTor}}
data-origin="tor"
{{/post.IsTor}}
{{#post.IsClearnet}}
data-origin="clearnet"
{{/post.IsClearnet}}
2018-03-09 16:19:08 -05:00
data-frontendpubkey="{{post.FrontendPubkey}}"
2017-04-18 19:42:46 -04:00
data-posturl="{{post.PostURL}}">
{{#post.Attachments}}
<a href="{{Source}}" class="image_link" target="_blank" title="{{Filename}}"><img src="{{Thumbnail}}" class="image" /></a>
{{/post.Attachments}}
2019-02-10 14:35:14 -05:00
<span class="mod" onclick="nntpchan_mod_delete('{{post.PostHash}}');">[Delete]</span>
<span class="mod" onclick="nntpchan_mod_mark_spam('{{post.PostHash}}');">[Spam]</span>
2019-02-10 14:11:04 -05:00
{{#post.IsCtl}}
2019-02-10 14:35:14 -05:00
<span class="mod" onclick="nntpchan_mod_trust_mod('{{post.PubkeyHex}}', this);">[Trust Moderator]</span>
<span class="mod" onclick="nntpchan_mod_untrust_mod('{{post.PubkeyHex}}', this);">[UnTrust Moderator]</span>
<span class="mod" onclick="nntpchan_mod_decode_ipban('{{post.PostHash}}');">[Decode Secrets]</span>
2019-02-10 14:11:04 -05:00
{{/post.IsCtl}}
2018-10-26 07:39:19 -04:00
<a name="{{post.PostHash}}"></a><span class="topicline"><b data-subject="{{post.Subject}}" class="subject">{{post.Subject}}</b> {{post.Name}} <span class="published">{{post.Frontend}} || {{post.Date}}</span> {{{post.Pubkey}}} <a href="{{post.PostURL}}">[Reply]</a>
2017-04-19 07:27:40 -04:00
<a href="#" onclick="return quickreply('{{post.ShortHash}}', '{{post.PostHash}}', '{{post.PostURL}}');"> {{post.ShortHash}}</a>
2017-04-18 19:42:46 -04:00
</span>
<br /><br />
2019-02-10 14:11:04 -05:00
<span id="post_body_{{post.PostHash}}" class="message_span">{{{post.RenderBody}}}</span>
2019-03-02 11:10:05 -05:00
{{#post.OP}}
2019-03-02 11:19:14 -05:00
<script type="text/javascript">
2019-03-02 11:20:48 -05:00
fetch("/api/find?hash={{post.PostHash}}").then(function(resp) {
2019-03-02 11:22:59 -05:00
return resp.json();
}).then(function(j) {
2019-03-02 11:20:48 -05:00
console.log(j);
2019-03-02 11:24:22 -05:00
if (j.length) {
2019-03-02 11:20:48 -05:00
var e = document.getElementById("post_body_{{post.PostHash}}");
if(e) {
var u = new URL(j[0].ReferencedURI);
2019-03-02 11:28:48 -05:00
console.log(u);
2019-03-02 11:27:25 -05:00
if(u.protocol === "https:" || u.protocol === "http:") {
2019-03-02 11:20:48 -05:00
var link = document.createElement("a");
link.href = u.toString();
link.innerText = "[Link]";
2019-03-02 11:29:45 -05:00
e.appendChild(document.createElement("hr"));
2019-03-02 11:28:48 -05:00
e.appendChild(link);
2019-03-02 11:20:48 -05:00
}
}
2019-03-02 11:26:24 -05:00
else throw "wut";
2019-03-02 11:20:48 -05:00
}
2019-03-02 11:19:14 -05:00
}).catch(function(resp) {
2019-03-02 11:20:48 -05:00
2019-03-02 11:19:14 -05:00
});
</script>
2019-03-02 11:10:05 -05:00
{{/post.OP}}
2017-04-18 19:42:46 -04:00
<br style="clear: both;" />
2019-03-02 11:10:05 -05:00
2017-04-18 19:42:46 -04:00
</div>