From f1ca5f19936dd4c0365d57f25a30683dcc9fb3f0 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Jan 2024 17:38:21 +0000 Subject: [PATCH] Remove subject and content when creating new reading status post --- webapp_create_post.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/webapp_create_post.py b/webapp_create_post.py index ed1f07fee..028da6867 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -1157,9 +1157,10 @@ def html_new_post(edit_post_params: {}, new_post_form += date_and_time_str new_post_form += '\n' - new_post_form += \ - edit_text_field(placeholder_subject, 'subject', default_subject) - new_post_form += '' + if endpoint != 'newreadingstatus': + new_post_form += \ + edit_text_field(placeholder_subject, 'subject', default_subject) + new_post_form += '' selected_str = ' selected' if in_reply_to or endpoint == 'newdm': @@ -1204,11 +1205,12 @@ def html_new_post(edit_post_params: {}, default_message = \ _remove_initial_mentions_from_content(default_message) - new_post_form += \ - ' \n' + if endpoint != 'newreadingstatus': + new_post_form += \ + ' \n' new_post_form += \ extra_fields + citations_str + replies_section + date_and_location if not media_instance or reply_str: