From d6aed72b3c27cabe4a07febf8bc5446df17d82ba Mon Sep 17 00:00:00 2001 From: freamon Date: Thu, 30 May 2024 01:33:54 +0100 Subject: [PATCH] Duplicate Poll title into body so it appears in content required for Mastodon to accept --- 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 81146573..013ed9c7 100644 --- a/app/community/util.py +++ b/app/community/util.py @@ -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: