From 8595d1b633233e3c16b5ad83c6fb1861ece216a0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 7 Dec 2020 10:56:17 +0000 Subject: [PATCH] Tidying --- webapp_create_post.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webapp_create_post.py b/webapp_create_post.py index 695b6e9b..5641d708 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -185,14 +185,9 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, if not path.endswith('/newshare'): if not path.endswith('/newreport'): - if not inReplyTo or shareDescription or \ - path.endswith('/newreminder'): - if shareDescription: - newPostText = '

' + \ - translate['Write your post text below.'] + '

\n' - else: - newPostText = '

' + \ - translate['Ask about a shared item.'] + '

\n' + if not inReplyTo or path.endswith('/newreminder'): + newPostText = '

' + \ + translate['Ask about a shared item.'] + '

\n' else: newPostText = \ '

' + \ @@ -251,6 +246,11 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {}, translate['Enter the choices for your question below.'] + \ '\n' + if shareDescription: + newPostText = '

' + \ + translate['Write your post text below.'] + '

\n' + + if os.path.isfile(baseDir + '/accounts/newpost.txt'): with open(baseDir + '/accounts/newpost.txt', 'r') as file: newPostText = \