From fec4b2d8becfcaa0d0de3d4e569c910676b9e41c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 29 May 2024 15:48:51 +0100 Subject: [PATCH] Line break at current point in conversation --- conversation.py | 5 +---- webapp_conversation.py | 6 ++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/conversation.py b/conversation.py index 147647de2..1f40b81c9 100644 --- a/conversation.py +++ b/conversation.py @@ -375,7 +375,4 @@ def download_conversation_posts(authorized: bool, session, if not get_json_valid(post_json_object): print(post_id + ' returned no json') - if replies_to_post: - conversation_view += '
\n' + replies_to_post - - return conversation_view + return conversation_view + replies_to_post diff --git a/webapp_conversation.py b/webapp_conversation.py index 98b4d9862..76d56b899 100644 --- a/webapp_conversation.py +++ b/webapp_conversation.py @@ -10,6 +10,7 @@ __module_group__ = "Timeline" import os from conversation import download_conversation_posts +from utils import remove_id_ending from utils import get_config_param from utils import get_nickname_from_actor from utils import get_domain_from_actor @@ -125,6 +126,11 @@ def html_conversation_view(authorized: bool, post_id: str, minimize_all_images, None, buy_sites, auto_cw_cache) if post_str: + if post_json_object.get('id'): + if isinstance(post_json_object['id'], str): + id_str = remove_id_ending(post_json_object['id']) + if post_id in id_str: + post_str += '
\n' conv_str += text_mode_separator + separator_str + post_str # if using a text mode browser then don't show SHOW MORE because there