Browse Source

Handle the server summary data as auto-linked markdown. Closes #1010

pull/1048/head
Gabe Kangas 4 years ago
parent
commit
36a15a97dd
  1. 5
      controllers/config.go
  2. 2
      core/data/defaults.go

5
controllers/config.go

@ -41,9 +41,12 @@ func GetWebConfig(w http.ResponseWriter, r *http.Request) { @@ -41,9 +41,12 @@ func GetWebConfig(w http.ResponseWriter, r *http.Request) {
}
}
serverSummary := data.GetServerSummary()
serverSummary = utils.RenderPageContentMarkdown(serverSummary)
configuration := webConfigResponse{
Name: data.GetServerName(),
Summary: data.GetServerSummary(),
Summary: serverSummary,
Logo: "/logo",
Tags: data.GetServerMetadataTags(),
Version: config.GetReleaseString(),

2
core/data/defaults.go

@ -27,7 +27,7 @@ func PopulateDefaults() { @@ -27,7 +27,7 @@ func PopulateDefaults() {
_ = SetRTMPPortNumber(float64(defaults.RTMPServerPort))
_ = SetLogoPath(defaults.Logo)
_ = SetServerMetadataTags([]string{"owncast", "streaming"})
_ = SetServerSummary("Welcome to your new Owncast server! This description can be changed in the admin")
_ = SetServerSummary("Welcome to your new Owncast server! This description can be changed in the admin. Visit https://owncast.online/docs/configuration/ to learn more.")
_ = SetServerWelcomeMessage("")
_ = SetServerName("Owncast")
_ = SetStreamKey(defaults.StreamKey)

Loading…
Cancel
Save