aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-29 11:32:24 +0000
committerr <r@freesoftwareextremist.com>2019-12-29 11:32:24 +0000
commit9e556721c507f5cfbafa32afbfa80b70c6f0eca1 (patch)
tree20f00fa29a6425279359b34e6613f60d5fa315f6 /model
parentede1bb42758d31e2537ba8545b3a403fc94f6cdb (diff)
downloadbloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.tar.gz
bloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.zip
Add default settings
Diffstat (limited to 'model')
-rw-r--r--model/notification.go1
-rw-r--r--model/settings.go9
2 files changed, 10 insertions, 0 deletions
diff --git a/model/notification.go b/model/notification.go
new file mode 100644
index 0000000..8b53790
--- /dev/null
+++ b/model/notification.go
@@ -0,0 +1 @@
+package model
diff --git a/model/settings.go b/model/settings.go
index bc8f09f..55db08a 100644
--- a/model/settings.go
+++ b/model/settings.go
@@ -3,4 +3,13 @@ package model
type Settings struct {
DefaultVisibility string `json:"default_visibility"`
CopyScope bool `json:"copy_scope"`
+ ThreadInNewTab bool `json:"thread_in_new_tab"`
+}
+
+func NewSettings() *Settings {
+ return &Settings{
+ DefaultVisibility: "public",
+ CopyScope: true,
+ ThreadInNewTab: false,
+ }
}