Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Render markdown to extra page content in prerelease api

Gabe Kangas4eeb20fb6410
diff --git a/controllers/admin/changePageContent.go b/controllers/admin/changePageContent.go
index 0f98d8773a..04e0d0a410 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")
}