aboutsummaryrefslogtreecommitdiff
path: root/model
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 /model
parentef41ff32e2cb16a3757b952a33d29528482685b8 (diff)
downloadbloat-fdd9b8fd2bf1688187dda2cb801232c744fe26e0.tar.gz
bloat-fdd9b8fd2bf1688187dda2cb801232c744fe26e0.zip
Add setting for default format
Diffstat (limited to 'model')
-rw-r--r--model/post.go1
-rw-r--r--model/settings.go2
2 files changed, 3 insertions, 0 deletions
diff --git a/model/post.go b/model/post.go
index 7cfead7..831f74f 100644
--- a/model/post.go
+++ b/model/post.go
@@ -7,6 +7,7 @@ type PostFormat struct {
type PostContext struct {
DefaultVisibility string
+ DefaultFormat string
ReplyContext *ReplyContext
Formats []PostFormat
DarkMode bool
diff --git a/model/settings.go b/model/settings.go
index 03e9581..337a6a3 100644
--- a/model/settings.go
+++ b/model/settings.go
@@ -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,