Duplicate Poll title into body so it appears in content

required for Mastodon to accept
This commit is contained in:
freamon 2024-05-30 01:33:54 +01:00
parent 2319458b00
commit d6aed72b3c

View file

@ -426,7 +426,7 @@ def save_post(form, post: Post, type: str):
elif type == 'poll':
post.title = form.poll_title.data
post.body = form.poll_body.data
post.body = form.poll_title.data + '\n' + form.poll_body.data
post.body_html = markdown_to_html(post.body)
post.type = POST_TYPE_POLL
else: