From 1aff0569bfecf427d097a1601d9c5ac449c65d49 Mon Sep 17 00:00:00 2001 From: r Date: Tue, 31 Dec 2019 11:00:21 +0000 Subject: Add option to mask nsfw attachments --- templates/settings.tmpl | 4 ++++ templates/status.tmpl | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/settings.tmpl b/templates/settings.tmpl index df04cb1..c4a1012 100644 --- a/templates/settings.tmpl +++ b/templates/settings.tmpl @@ -20,6 +20,10 @@ +
+ + +
diff --git a/templates/status.tmpl b/templates/status.tmpl index 4c94062..2013f47 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -61,7 +61,7 @@ {{if eq .Type "image"}} status-image - {{if $.Sensitive}} + {{if (and $.MaskNSFW $.Sensitive)}}
{{end}}
@@ -76,7 +76,7 @@

Your browser doesn't support HTML5 video

- {{if $.Sensitive}} + {{if (and $.MaskNSFW $.Sensitive)}}
{{end}} -- cgit v1.2.3