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"`
|
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,
|
2019-12-29 13:32:24 +02:00
|
|
|
}
|
2019-12-21 13:13:21 +02:00
|
|
|
}
|