From 94dd07f98fffaba301948e95097b9bb547c54eab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 21 May 2022 13:05:23 +0100 Subject: [PATCH] Separate map string --- webapp_post.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index 0ea90e8d0..476aafb06 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -2143,6 +2143,7 @@ def individual_post_as_html(signing_priv_key_pem: str, _log_post_timing(enable_timing_log, post_start_time, '17') + map_str = '' if post_json_object['object'].get('tag'): if not is_patch: content_str = \ @@ -2156,7 +2157,7 @@ def individual_post_as_html(signing_priv_key_pem: str, if location_str: if '://' in location_str and '.' in location_str: bounding_box_degrees = 0.01 - content_str += \ + map_str = \ html_open_street_map(location_str, bounding_box_degrees, translate) @@ -2197,7 +2198,8 @@ def individual_post_as_html(signing_priv_key_pem: str, ' ' + title_str + \ reply_avatar_image_in_post + ' \n' post_html += \ - content_str + citations_str + reaction_str + footer_str + '\n' + content_str + citations_str + map_str + \ + reaction_str + footer_str + '\n' post_html += ' \n' else: post_html = gallery_str