bloat/model/settings.go

28 lines
935 B
Go
Raw Normal View History

2019-12-21 13:13:21 +02:00
package model
type Settings struct {
2020-02-19 00:15:37 +02:00
DefaultVisibility string `json:"default_visibility"`
CopyScope bool `json:"copy_scope"`
ThreadInNewTab bool `json:"thread_in_new_tab"`
2020-04-25 12:35:18 +03:00
HideAttachments bool `json:"hide_attachments"`
2020-02-19 00:15:37 +02: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 13:32:24 +02:00
}
func NewSettings() *Settings {
return &Settings{
2020-02-19 00:15:37 +02:00
DefaultVisibility: "public",
CopyScope: true,
ThreadInNewTab: false,
2020-04-25 12:35:18 +03:00
HideAttachments: false,
2020-02-19 00:15:37 +02:00
MaskNSFW: true,
AutoRefreshNotifications: false,
FluorideMode: false,
DarkMode: false,
2020-09-02 20:50:48 +03:00
AntiDopamineMode: false,
2019-12-29 13:32:24 +02:00
}
2019-12-21 13:13:21 +02:00
}