diff options
author | r <r@freesoftwareextremist.com> | 2020-04-25 09:35:18 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2020-04-25 09:35:18 +0000 |
commit | f380371654dd81b258e5f37e50ffcf3764f117c1 (patch) | |
tree | edfa323e84ea3264a7a0cf7ba4a3ee58895cbcf0 /service/transport.go | |
parent | 1e750f89b156c601fa5cfbda21e8c4b46be85b18 (diff) | |
download | bloat-f380371654dd81b258e5f37e50ffcf3764f117c1.tar.gz bloat-f380371654dd81b258e5f37e50ffcf3764f117c1.zip |
Add option to hide 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 f52cca0..840f4cc 100644 --- a/service/transport.go +++ b/service/transport.go @@ -615,6 +615,7 @@ 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" + hideAttachments := req.FormValue("hide_attachments") == "true" maskNSFW := req.FormValue("mask_nsfw") == "true" arn := req.FormValue("auto_refresh_notifications") == "true" fluorideMode := req.FormValue("fluoride_mode") == "true" @@ -624,6 +625,7 @@ func NewHandler(s Service, staticDir string) http.Handler { DefaultVisibility: visibility, CopyScope: copyScope, ThreadInNewTab: threadInNewTab, + HideAttachments: hideAttachments, MaskNSFW: maskNSFW, AutoRefreshNotifications: arn, FluorideMode: fluorideMode, |