diff options
author | r <r@freesoftwareextremist.com> | 2019-12-31 11:00:21 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-31 11:24:39 +0000 |
commit | 1aff0569bfecf427d097a1601d9c5ac449c65d49 (patch) | |
tree | d1d923b663709c751628ef362eb19bd3a82ac148 /service/transport.go | |
parent | 9e556721c507f5cfbafa32afbfa80b70c6f0eca1 (diff) | |
download | bloat-1aff0569bfecf427d097a1601d9c5ac449c65d49.tar.gz bloat-1aff0569bfecf427d097a1601d9c5ac449c65d49.zip |
Add option to mask nsfw attachments
Diffstat (limited to 'service/transport.go')
-rw-r--r-- | service/transport.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/service/transport.go b/service/transport.go index 83eeedf..8075377 100644 --- a/service/transport.go +++ b/service/transport.go @@ -355,10 +355,12 @@ func NewHandler(s Service, staticDir string) http.Handler { visibility := req.FormValue("visibility") copyScope := req.FormValue("copy_scope") == "true" threadInNewTab := req.FormValue("thread_in_new_tab") == "true" + maskNSFW := req.FormValue("mask_nsfw") == "true" settings := &model.Settings{ DefaultVisibility: visibility, CopyScope: copyScope, ThreadInNewTab: threadInNewTab, + MaskNSFW: maskNSFW, } err := s.SaveSettings(ctx, w, nil, settings) |