Render markdown to extra page content in prerelease api

This commit is contained in:
Gabe Kangas 2020-12-29 23:38:49 -08:00
parent 04de05a1cc
commit 68f481d8be

View file

@ -6,6 +6,7 @@ import (
"github.com/owncast/owncast/config" "github.com/owncast/owncast/config"
"github.com/owncast/owncast/controllers" "github.com/owncast/owncast/controllers"
"github.com/owncast/owncast/utils"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
@ -26,7 +27,7 @@ func ChangeExtraPageContent(w http.ResponseWriter, r *http.Request) {
return return
} }
config.Config.InstanceDetails.ExtraPageContent = request.Key config.Config.InstanceDetails.ExtraPageContent = utils.RenderSimpleMarkdown(request.Key)
controllers.WriteSimpleResponse(w, true, "changed") controllers.WriteSimpleResponse(w, true, "changed")
} }