Add setting for default format

This commit is contained in:
r 2020-10-19 06:51:23 +00:00
parent ef41ff32e2
commit fdd9b8fd2b
7 changed files with 26 additions and 5 deletions

View file

@ -7,6 +7,7 @@ type PostFormat struct {
type PostContext struct {
DefaultVisibility string
DefaultFormat string
ReplyContext *ReplyContext
Formats []PostFormat
DarkMode bool

View file

@ -2,6 +2,7 @@ package model
type Settings struct {
DefaultVisibility string `json:"default_visibility"`
DefaultFormat string `json:"default_format"`
CopyScope bool `json:"copy_scope"`
ThreadInNewTab bool `json:"thread_in_new_tab"`
HideAttachments bool `json:"hide_attachments"`
@ -15,6 +16,7 @@ type Settings struct {
func NewSettings() *Settings {
return &Settings{
DefaultVisibility: "public",
DefaultFormat: "",
CopyScope: true,
ThreadInNewTab: false,
HideAttachments: false,