mirror of
https://github.com/owncast/owncast.git
synced 2024-11-25 06:12:23 +03:00
Render markdown to extra page content in prerelease api
This commit is contained in:
parent
04de05a1cc
commit
68f481d8be
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue