From 6a1851cd77f09dacb6c84205c65ee17866a083db Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Mon, 28 Jun 2021 20:27:14 -0700 Subject: added onion temp fix for error in null element --- static/posts.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'static/posts.html') diff --git a/static/posts.html b/static/posts.html index 194c273..a086bdb 100644 --- a/static/posts.html +++ b/static/posts.html @@ -34,7 +34,7 @@ if(isOnion("{{ .Id }}")) { sensitive = document.getElementById("sensitive-{{ .Id }}") - document.getElementById("sensitive-img-{{ .Id }}").src = "/static/clover.png" + document.getElementById("sensitive-img-{{ .Id }}").src = "/static/onion.png" document.getElementById("sensitive-text-{{ .Id }}").innerText = "Tor Node" 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;"} @@ -107,10 +107,8 @@ [Mark Sensitive] {{ end }} File {{ (index .Attachment 0).Name }} ({{ (index .Attachment 0).Size }}) - {{ if and .Sensitive $board.Actor.Restricted }}
- {{ end }}