Browse Source

Add default content type configuration

Updated config.example.toml to include a default content type option for
toots, allowing users to set a preferred type (e.g. text/plain or
text/markdown) for supported backends.
pull/289/head
Fabio Manganiello 3 months ago
parent
commit
3bf3ad77a5
No known key found for this signature in database
GPG Key ID: D90FBA7F76362774
  1. 4
      config.example.toml
  2. 1
      config/toml.go

4
config.example.toml

@ -129,6 +129,10 @@ leader-key=""
# default=1000
leader-timeout=1000
# If the backend supports it (e.g. Pleroma, Akkoma and Friendica), you can set
# the default content type for toots here (usually text/plain or text/markdown).
default-content-type="text/plain"
# [[general.timelines]]
# Timelines adds panes of feeds. You can customize the number of feeds, what
# they should show and the key to activate them.

1
config/toml.go

@ -8,7 +8,6 @@ type ConfigTOML struct {
OpenCustom OpenCustomTOML `toml:"open-custom"`
NotificationConfig NotificationsTOML `toml:"desktop-notification"`
Input InputTOML `toml:"input"`
DefaultContentType string `toml:"default-content-type"` // e.g. "text/plain" or "text/markdown"
}
type GeneralTOML struct {

Loading…
Cancel
Save