mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 10:58:48 +00:00
Add setting for default format
This commit is contained in:
parent
ef41ff32e2
commit
fdd9b8fd2b
7 changed files with 26 additions and 5 deletions
|
@ -7,6 +7,7 @@ type PostFormat struct {
|
|||
|
||||
type PostContext struct {
|
||||
DefaultVisibility string
|
||||
DefaultFormat string
|
||||
ReplyContext *ReplyContext
|
||||
Formats []PostFormat
|
||||
DarkMode bool
|
||||
|
|
|
@ -2,6 +2,7 @@ package model
|
|||
|
||||
type Settings struct {
|
||||
DefaultVisibility string `json:"default_visibility"`
|
||||
DefaultFormat string `json:"default_format"`
|
||||
CopyScope bool `json:"copy_scope"`
|
||||
ThreadInNewTab bool `json:"thread_in_new_tab"`
|
||||
HideAttachments bool `json:"hide_attachments"`
|
||||
|
@ -15,6 +16,7 @@ type Settings struct {
|
|||
func NewSettings() *Settings {
|
||||
return &Settings{
|
||||
DefaultVisibility: "public",
|
||||
DefaultFormat: "",
|
||||
CopyScope: true,
|
||||
ThreadInNewTab: false,
|
||||
HideAttachments: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue