about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-12-07 01:22:14 +0300
committerVika <vika@fireburn.ru>2021-12-07 01:22:14 +0300
commit4fcfed5ddb00d9d37ba1c1d787b2124c0326897c (patch)
tree195a57ea3bb851f3f4d146eb741b2544236a4894
parentc02037628e36e71e528b3c76ffb88dc103d73228 (diff)
downloadkittybox-4fcfed5ddb00d9d37ba1c1d787b2124c0326897c.tar.zst
Add indicators on private posts
-rw-r--r--src/frontend/templates/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frontend/templates/mod.rs b/src/frontend/templates/mod.rs
index dbc23c9..e6dec51 100644
--- a/src/frontend/templates/mod.rs
+++ b/src/frontend/templates/mod.rs
@@ -98,6 +98,11 @@ markup::define! {
                             }
                         }
                     }
+                    @if post["properties"]["visibility"][0].as_str().unwrap_or("public") != "public" {
+                        span."p-visibility"[value=post["properties"]["visibility"][0].as_str().unwrap()] {
+                            @post["properties"]["visibility"][0].as_str().unwrap()
+                        }
+                    }
                     @if post["properties"]["category"].is_array() {
                         span {
                             ul.categories {