mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -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':
|
elif type == 'poll':
|
||||||
post.title = form.poll_title.data
|
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.body_html = markdown_to_html(post.body)
|
||||||
post.type = POST_TYPE_POLL
|
post.type = POST_TYPE_POLL
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue