From fdd9b8fd2bf1688187dda2cb801232c744fe26e0 Mon Sep 17 00:00:00 2001 From: r Date: Mon, 19 Oct 2020 06:51:23 +0000 Subject: Add setting for default format --- model/post.go | 1 + model/settings.go | 2 ++ 2 files changed, 3 insertions(+) (limited to 'model') diff --git a/model/post.go b/model/post.go index 7cfead7..831f74f 100644 --- a/model/post.go +++ b/model/post.go @@ -7,6 +7,7 @@ type PostFormat struct { type PostContext struct { DefaultVisibility string + DefaultFormat string ReplyContext *ReplyContext Formats []PostFormat DarkMode bool diff --git a/model/settings.go b/model/settings.go index 03e9581..337a6a3 100644 --- a/model/settings.go +++ b/model/settings.go @@ -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, -- cgit v1.2.3