From 36a15a97dda91dadcf8274b7ceba139f46fb03aa Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 22 May 2021 17:09:57 -0700 Subject: [PATCH] Handle the server summary data as auto-linked markdown. Closes #1010 --- controllers/config.go | 5 ++++- core/data/defaults.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/controllers/config.go b/controllers/config.go index dfde8285a..ea302f24c 100644 --- a/controllers/config.go +++ b/controllers/config.go @@ -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(), diff --git a/core/data/defaults.go b/core/data/defaults.go index f52387494..ad1810ecb 100644 --- a/core/data/defaults.go +++ b/core/data/defaults.go @@ -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)