bloat/model/settings.go

30 lines
1 KiB
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"`
2020-10-19 06:51:23 +00:00
DefaultFormat string `json:"default_format"`
2020-02-18 22:15:37 +00:00
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"`
AntiDopamineMode bool `json:"anti_dopamine_mode"`
2019-12-29 11:32:24 +00:00
}
func NewSettings() *Settings {
return &Settings{
2020-02-18 22:15:37 +00:00
DefaultVisibility: "public",
2020-10-19 06:51:23 +00:00
DefaultFormat: "",
2020-02-18 22:15:37 +00:00
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,
2020-09-02 17:50:48 +00:00
AntiDopamineMode: false,
2019-12-29 11:32:24 +00:00
}
2019-12-21 11:13:21 +00:00
}