From 68f481d8be9a7db673cd2581fd7b6fcb21905c32 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Tue, 29 Dec 2020 23:38:49 -0800 Subject: [PATCH] Render markdown to extra page content in prerelease api --- controllers/admin/changePageContent.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/admin/changePageContent.go b/controllers/admin/changePageContent.go index 0f98d8773..04e0d0a41 100644 --- a/controllers/admin/changePageContent.go +++ b/controllers/admin/changePageContent.go @@ -6,6 +6,7 @@ import ( "github.com/owncast/owncast/config" "github.com/owncast/owncast/controllers" + "github.com/owncast/owncast/utils" log "github.com/sirupsen/logrus" ) @@ -26,7 +27,7 @@ func ChangeExtraPageContent(w http.ResponseWriter, r *http.Request) { return } - config.Config.InstanceDetails.ExtraPageContent = request.Key + config.Config.InstanceDetails.ExtraPageContent = utils.RenderSimpleMarkdown(request.Key) controllers.WriteSimpleResponse(w, true, "changed") }