diff options
author | r <r@freesoftwareextremist.com> | 2019-12-29 11:32:24 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-29 11:32:24 +0000 |
commit | 9e556721c507f5cfbafa32afbfa80b70c6f0eca1 (patch) | |
tree | 20f00fa29a6425279359b34e6613f60d5fa315f6 /model | |
parent | ede1bb42758d31e2537ba8545b3a403fc94f6cdb (diff) | |
download | bloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.tar.gz bloat-9e556721c507f5cfbafa32afbfa80b70c6f0eca1.zip |
Add default settings
Diffstat (limited to 'model')
-rw-r--r-- | model/notification.go | 1 | ||||
-rw-r--r-- | model/settings.go | 9 |
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, + } } |