Get reply actor for posts without object dict

merge-requests/30/head
Bob Mottram 2023-07-31 13:21:37 +01:00
parent b0d8da58d8
commit 20d1b34f28
1 changed files with 6 additions and 0 deletions

View File

@ -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,