mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Add default settings
This commit is contained in:
parent
ede1bb4275
commit
9e556721c5
7 changed files with 33 additions and 10 deletions
1
model/notification.go
Normal file
1
model/notification.go
Normal file
|
@ -0,0 +1 @@
|
|||
package model
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue