Fix issues related to AntiDopamine mode
[bloat] / model / settings.go
1 package model
2
3 type Settings struct {
4         DefaultVisibility        string `json:"default_visibility"`
5         CopyScope                bool   `json:"copy_scope"`
6         ThreadInNewTab           bool   `json:"thread_in_new_tab"`
7         HideAttachments          bool   `json:"hide_attachments"`
8         MaskNSFW                 bool   `json:"mask_nfsw"`
9         AutoRefreshNotifications bool   `json:"auto_refresh_notifications"`
10         FluorideMode             bool   `json:"fluoride_mode"`
11         DarkMode                 bool   `json:"dark_mode"`
12         AntiDopamineMode         bool   `json:"anti_dopamine_mode"`
13 }
14
15 func NewSettings() *Settings {
16         return &Settings{
17                 DefaultVisibility:        "public",
18                 CopyScope:                true,
19                 ThreadInNewTab:           false,
20                 HideAttachments:          false,
21                 MaskNSFW:                 true,
22                 AutoRefreshNotifications: false,
23                 FluorideMode:             false,
24                 DarkMode:                 false,
25                 AntiDopamineMode:         false,
26         }
27 }