settings.go 936 B

1234567891011121314151617181920212223242526272829
  1. package model
  2. type Settings struct {
  3. DefaultVisibility string `json:"default_visibility"`
  4. DefaultFormat string `json:"default_format"`
  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. NotificationInterval int `json:"notifications_interval"`
  10. FluorideMode bool `json:"fluoride_mode"`
  11. DarkMode bool `json:"dark_mode"`
  12. AntiDopamineMode bool `json:"anti_dopamine_mode"`
  13. }
  14. func NewSettings() *Settings {
  15. return &Settings{
  16. DefaultVisibility: "public",
  17. DefaultFormat: "",
  18. CopyScope: true,
  19. ThreadInNewTab: false,
  20. HideAttachments: false,
  21. MaskNSFW: true,
  22. NotificationInterval: 0,
  23. FluorideMode: false,
  24. DarkMode: false,
  25. AntiDopamineMode: false,
  26. }
  27. }