Remove subject and content when creating new reading status post

merge-requests/30/head
Bob Mottram 2024-01-03 17:38:21 +00:00
parent 0757a281f4
commit f1ca5f1993
1 changed files with 10 additions and 8 deletions

View File

@ -1157,6 +1157,7 @@ def html_new_post(edit_post_params: {},
new_post_form += date_and_time_str new_post_form += date_and_time_str
new_post_form += '</div>\n' new_post_form += '</div>\n'
if endpoint != 'newreadingstatus':
new_post_form += \ new_post_form += \
edit_text_field(placeholder_subject, 'subject', default_subject) edit_text_field(placeholder_subject, 'subject', default_subject)
new_post_form += '' new_post_form += ''
@ -1204,6 +1205,7 @@ def html_new_post(edit_post_params: {},
default_message = \ default_message = \
_remove_initial_mentions_from_content(default_message) _remove_initial_mentions_from_content(default_message)
if endpoint != 'newreadingstatus':
new_post_form += \ new_post_form += \
' <textarea id="message" name="message" style="height:' + \ ' <textarea id="message" name="message" style="height:' + \
str(message_box_height) + 'px"' + selected_str + \ str(message_box_height) + 'px"' + selected_str + \