From fb1251826492d03d78285abad0b3db127a034a3f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 May 2025 15:23:53 +0100 Subject: [PATCH] If no map or location still show category and time span --- webapp_post.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webapp_post.py b/webapp_post.py index 981ad5bfc..f0008953b 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -3279,6 +3279,16 @@ def individual_post_as_html(signing_priv_key_pem: str, if time_span_str: map_str += '

' + time_span_str + '

\n' + if not map_str and not location_str: + if category_str: + category_text = 'Category' + if translate.get('Category'): + category_text = translate['Category'] + map_str += '

' + category_text + ': ' + \ + category_str + '

\n' + if time_span_str: + map_str += '

' + time_span_str + '

\n' + if is_muted: content_str = '' else: