diff options
author | FChannel <> | 2021-06-29 14:50:44 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-29 14:50:44 -0700 |
commit | f404f8ff098674280231819958c9beedcdba6011 (patch) | |
tree | a25f463e65922d17d38bef9dbdc95080774e0cc3 /static/posts.html | |
parent | edeea09dc17a761aedfa37d2ba0ef49ff9af3fe6 (diff) |
fix for tor instances and displaying media
Diffstat (limited to 'static/posts.html')
-rw-r--r-- | static/posts.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/posts.html b/static/posts.html index 26d1f4c..319da03 100644 --- a/static/posts.html +++ b/static/posts.html @@ -23,7 +23,7 @@ <script> media = document.getElementById("media-{{ .Id }}") - if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || isOnion("{{ .Id }}")){ + 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;"} @@ -114,7 +114,7 @@ <script> media = document.getElementById("media-{{ .Id }}") - if(({{ .Sensitive }} && {{ $board.Actor.Restricted }}) || isOnion("{{ .Id }}")){ + 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;"} |