Reply to id

main
Bob Mottram 2024-12-19 11:27:51 +00:00
parent b97f5e1a72
commit 240be8afe0
1 changed files with 6 additions and 0 deletions

View File

@ -1674,6 +1674,9 @@ def _get_post_title_reply_html(base_dir: str,
if attrib: if attrib:
reply_actor = attrib reply_actor = attrib
in_reply_to = reply_actor 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: elif obj_json != reply_post_json:
obj_json = reply_post_json obj_json = reply_post_json
if obj_json.get('attributedTo'): if obj_json.get('attributedTo'):
@ -1681,6 +1684,9 @@ def _get_post_title_reply_html(base_dir: str,
if attrib: if attrib:
reply_actor = attrib reply_actor = attrib
in_reply_to = reply_actor 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: if post_domain and not reply_actor:
title_str += \ title_str += \