mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 17:49:27 +02:00
Fixed error 500 when rendering markdown
This commit is contained in:
parent
575b6819c7
commit
fa801f9ea7
2 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue