From 20d1b34f28727349046c56eb087ee9e8a7ac32bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 31 Jul 2023 13:21:37 +0100 Subject: [PATCH] Get reply actor for posts without object dict --- webapp_post.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp_post.py b/webapp_post.py index 1b42803b7..c5386fbef 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1548,6 +1548,12 @@ def _get_post_title_reply_html(base_dir: str, if obj_json.get('attributedTo'): if isinstance(obj_json['attributedTo'], str): reply_actor = obj_json['attributedTo'] + elif obj_json != reply_post_json: + obj_json = reply_post_json + if obj_json.get('attributedTo'): + if isinstance(obj_json['attributedTo'], str): + reply_actor = obj_json['attributedTo'] + if post_domain and not reply_actor: title_str += \ _reply_with_unknown_path_html(translate,