mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
strip post title
This commit is contained in:
parent
91def29480
commit
fd9d744111
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ def save_post(form, post: Post, type: int):
|
||||||
post.notify_author = form.notify_author.data
|
post.notify_author = form.notify_author.data
|
||||||
post.language_id = form.language_id.data
|
post.language_id = form.language_id.data
|
||||||
current_user.language_id = form.language_id.data
|
current_user.language_id = form.language_id.data
|
||||||
post.title = form.title.data
|
post.title = form.title.data.strip()
|
||||||
post.body = piefed_markdown_to_lemmy_markdown(form.body.data)
|
post.body = piefed_markdown_to_lemmy_markdown(form.body.data)
|
||||||
post.body_html = markdown_to_html(post.body)
|
post.body_html = markdown_to_html(post.body)
|
||||||
if not type or type == POST_TYPE_ARTICLE:
|
if not type or type == POST_TYPE_ARTICLE:
|
||||||
|
|
Loading…
Reference in a new issue