kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fixed error 500 when rendering markdown
rodzic
575b6819c7
commit
fa801f9ea7
|
@ -959,3 +959,4 @@ USE_FULL_TEXT_SEARCH = env.bool("USE_FULL_TEXT_SEARCH", default=True)
|
|||
MIN_DELAY_BETWEEN_DOWNLOADS_COUNT = env.int(
|
||||
"MIN_DELAY_BETWEEN_DOWNLOADS_COUNT", default=60 * 60 * 6
|
||||
)
|
||||
MARKDOWN_EXTENSIONS = env.list("MARKDOWN_EXTENSIONS", default=["nl2br", "extra"])
|
||||
|
|
|
@ -249,7 +249,7 @@ def join_queries_or(left, right):
|
|||
return right
|
||||
|
||||
|
||||
MARKDOWN_RENDERER = markdown.Markdown(extensions=["nl2br", "extra"])
|
||||
MARKDOWN_RENDERER = markdown.Markdown(extensions=settings.MARKDOWN_EXTENSIONS)
|
||||
|
||||
|
||||
def render_markdown(text):
|
||||
|
|
Ładowanie…
Reference in New Issue