Add default settings

This commit is contained in:
r 2019-12-29 11:32:24 +00:00
parent ede1bb4275
commit 9e556721c5
7 changed files with 33 additions and 10 deletions

1
model/notification.go Normal file
View file

@ -0,0 +1 @@
package model

View file

@ -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,
}
}