aboutsummaryrefslogtreecommitdiff
path: root/service/transport.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-10-19 06:51:23 +0000
committerr <r@freesoftwareextremist.com>2020-10-19 06:51:23 +0000
commitfdd9b8fd2bf1688187dda2cb801232c744fe26e0 (patch)
treef729fa705e254644fc188639e6dbf55d769df4f6 /service/transport.go
parentef41ff32e2cb16a3757b952a33d29528482685b8 (diff)
downloadbloat-fdd9b8fd2bf1688187dda2cb801232c744fe26e0.tar.gz
bloat-fdd9b8fd2bf1688187dda2cb801232c744fe26e0.zip
Add setting for default format
Diffstat (limited to 'service/transport.go')
-rw-r--r--service/transport.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/service/transport.go b/service/transport.go
index 4f73c5e..6c0975d 100644
--- a/service/transport.go
+++ b/service/transport.go
@@ -584,6 +584,7 @@ func NewHandler(s Service, staticDir string) http.Handler {
settings := func(w http.ResponseWriter, req *http.Request) {
c := newClient(w, req, req.FormValue("csrf_token"))
visibility := req.FormValue("visibility")
+ format := req.FormValue("format")
copyScope := req.FormValue("copy_scope") == "true"
threadInNewTab := req.FormValue("thread_in_new_tab") == "true"
hideAttachments := req.FormValue("hide_attachments") == "true"
@@ -595,6 +596,7 @@ func NewHandler(s Service, staticDir string) http.Handler {
settings := &model.Settings{
DefaultVisibility: visibility,
+ DefaultFormat: format,
CopyScope: copyScope,
ThreadInNewTab: threadInNewTab,
HideAttachments: hideAttachments,