From 240be8afe0d25000fce1ae61f9d54fa34669e76d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 19 Dec 2024 11:27:51 +0000 Subject: [PATCH] Reply to id --- webapp_post.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp_post.py b/webapp_post.py index c0588c5fc..eb4d55367 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1674,6 +1674,9 @@ def _get_post_title_reply_html(base_dir: str, if attrib: reply_actor = attrib in_reply_to = reply_actor + if obj_json.get('id'): + if isinstance(obj_json['id'], str): + in_reply_to = obj_json['id'] elif obj_json != reply_post_json: obj_json = reply_post_json if obj_json.get('attributedTo'): @@ -1681,6 +1684,9 @@ def _get_post_title_reply_html(base_dir: str, if attrib: reply_actor = attrib in_reply_to = reply_actor + if obj_json.get('id'): + if isinstance(obj_json['id'], str): + in_reply_to = obj_json['id'] if post_domain and not reply_actor: title_str += \