0

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

This commit is contained in:
Gabe Kangas 2021-05-22 17:09:57 -07:00
parent 1504ea3509
commit 36a15a97dd
2 changed files with 5 additions and 2 deletions

View File

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

View File

@ -27,7 +27,7 @@ func PopulateDefaults() {
_ = SetRTMPPortNumber(float64(defaults.RTMPServerPort)) _ = SetRTMPPortNumber(float64(defaults.RTMPServerPort))
_ = SetLogoPath(defaults.Logo) _ = SetLogoPath(defaults.Logo)
_ = SetServerMetadataTags([]string{"owncast", "streaming"}) _ = 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("") _ = SetServerWelcomeMessage("")
_ = SetServerName("Owncast") _ = SetServerName("Owncast")
_ = SetStreamKey(defaults.StreamKey) _ = SetStreamKey(defaults.StreamKey)