mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Duplicate Poll title into body so it appears in content
required for Mastodon to accept
This commit is contained in:
parent
2319458b00
commit
d6aed72b3c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue