aboutsummaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
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,
+ }
}