From fd9d7441115133cf05f5fc3cf5a555cc0051ce27 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 29 Sep 2024 17:13:30 +1300 Subject: [PATCH] strip post title --- app/community/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/util.py b/app/community/util.py index 0132ddb6..2cc7913d 100644 --- a/app/community/util.py +++ b/app/community/util.py @@ -254,7 +254,7 @@ def save_post(form, post: Post, type: int): post.notify_author = form.notify_author.data post.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_html = markdown_to_html(post.body) if not type or type == POST_TYPE_ARTICLE: