aboutsummaryrefslogtreecommitdiff
path: root/static/posts.html
diff options
context:
space:
mode:
authorFChannel <>2021-07-31 12:10:31 -0700
committerFChannel <>2021-07-31 12:10:31 -0700
commit4a9452985a127a53572358c3b86a425a5df616e1 (patch)
treef83f0a0ee92e8167195f06f286bff28fe892581d /static/posts.html
parentac288d40da3235b9382d685c9958ad167a758bcd (diff)
removed javascript causing errors and updated readme with xmpp room
Diffstat (limited to 'static/posts.html')
-rw-r--r--static/posts.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/static/posts.html b/static/posts.html
index 0349ebb..c4f19d8 100644
--- a/static/posts.html
+++ b/static/posts.html
@@ -24,7 +24,7 @@
<div id="media-{{ .Id }}">{{ parseAttachment . false }}</div>
<script>
media = document.getElementById("media-{{ .Id }}")
- if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || (isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}"))){
+ if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || {{ isOnion .Id }} && !{{ isOnion $board.Domain }}){
sensitive = document.getElementById("sensitive-{{ .Id }}")
hide = document.getElementById("hide-{{ .Id }}")
sensitive.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: block;"; document.getElementById("sensitive-{{ .Id }}").style="display: none;"; document.getElementById("hide-{{ .Id }}").style="display: block; cursor: pointer;"}
@@ -33,7 +33,7 @@
media.style = "display: none;"
}
- if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}")) {
+ if({{ isOnion .Id }} && !{{ isOnion $board.Domain }}) {
sensitive = document.getElementById("sensitive-{{ .Id }}")
document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png"
document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance"
@@ -76,7 +76,7 @@
<script>
media = document.getElementById("media-{{ .Id }}")
- if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || (isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}"))){
+ if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || {{ isOnion .Id }} && !{{ isOnion $board.Domain }}){
sensitive = document.getElementById("sensitive-{{ .Id }}")
hide = document.getElementById("hide-{{ .Id }}")
sensitive.onclick = function(){document.getElementById("media-{{ .Id }}").style="display: block;"; document.getElementById("sensitive-{{ .Id }}").style="display: none;"; document.getElementById("hide-{{ .Id }}").style="display: block; cursor: pointer;"}
@@ -85,7 +85,7 @@
media.style = "display: none;"
}
- if(isOnion("{{ .Id }}") && !isOnion("{{ $board.Domain }}")) {
+ if({{ isOnion .Id }} && !{{ isOnion $board.Domain }}) {
sensitive = document.getElementById("sensitive-{{ .Id }}")
document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png"
document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Instance"