bloat/model/settings.go

26 lines
839 B
Go
Raw Normal View History

2019-12-21 11:13:21 +00:00
package model
type Settings struct {
2020-02-18 22:15:37 +00:00
DefaultVisibility string `json:"default_visibility"`
CopyScope bool `json:"copy_scope"`
ThreadInNewTab bool `json:"thread_in_new_tab"`
2020-04-25 09:35:18 +00:00
HideAttachments bool `json:"hide_attachments"`
2020-02-18 22:15:37 +00:00
MaskNSFW bool `json:"mask_nfsw"`
AutoRefreshNotifications bool `json:"auto_refresh_notifications"`
FluorideMode bool `json:"fluoride_mode"`
DarkMode bool `json:"dark_mode"`
2019-12-29 11:32:24 +00:00
}
func NewSettings() *Settings {
return &Settings{
2020-02-18 22:15:37 +00:00
DefaultVisibility: "public",
CopyScope: true,
ThreadInNewTab: false,
2020-04-25 09:35:18 +00:00
HideAttachments: false,
2020-02-18 22:15:37 +00:00
MaskNSFW: true,
AutoRefreshNotifications: false,
FluorideMode: false,
DarkMode: false,
2019-12-29 11:32:24 +00:00
}
2019-12-21 11:13:21 +00:00
}