From fdd9b8fd2bf1688187dda2cb801232c744fe26e0 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 19 Oct 2020 06:51:23 +0000 Subject: Add setting for default format --- service/transport.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'service/transport.go') 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, -- cgit v1.2.3