2019-12-21 13:13:21 +02:00
|
|
|
package model
|
|
|
|
|
|
|
|
type Settings struct {
|
2019-12-21 15:26:31 +02:00
|
|
|
DefaultVisibility string `json:"default_visibility"`
|
2019-12-27 10:06:43 +02:00
|
|
|
CopyScope bool `json:"copy_scope"`
|
2019-12-29 13:32:24 +02:00
|
|
|
ThreadInNewTab bool `json:"thread_in_new_tab"`
|
2019-12-31 13:00:21 +02:00
|
|
|
MaskNSFW bool `json:"mask_nfsw"`
|
2020-01-08 20:16:06 +02:00
|
|
|
FluorideMode bool `json:"fluoride_mode"`
|
2019-12-29 13:32:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewSettings() *Settings {
|
|
|
|
return &Settings{
|
|
|
|
DefaultVisibility: "public",
|
|
|
|
CopyScope: true,
|
|
|
|
ThreadInNewTab: false,
|
2019-12-31 13:00:21 +02:00
|
|
|
MaskNSFW: true,
|
2020-01-08 20:16:06 +02:00
|
|
|
FluorideMode: false,
|
2019-12-29 13:32:24 +02:00
|
|
|
}
|
2019-12-21 13:13:21 +02:00
|
|
|
}
|