main
Bob Mottram 2024-05-29 14:52:09 +01:00
parent 3c4750cb50
commit 6f2873ef7c
1 changed files with 8 additions and 0 deletions

View File

@ -135,6 +135,9 @@ def _get_replies_to_post(post_json_object: {},
replies_connection_id = post_obj['replies'] replies_connection_id = post_obj['replies']
if replies_connection_id: if replies_connection_id:
print('DEBUG: get_replies_to_post replies_connection_id ' +
str(replies_connection_id))
replies_collection = \ replies_collection = \
get_json(signing_priv_key_pem, session, replies_connection_id, get_json(signing_priv_key_pem, session, replies_connection_id,
as_header, None, debug, __version__, as_header, None, debug, __version__,
@ -142,6 +145,8 @@ def _get_replies_to_post(post_json_object: {},
if not get_json_valid(replies_collection): if not get_json_valid(replies_collection):
return result return result
print('DEBUG: get_replies_to_post replies_connection ' +
str(replies_collection))
# get the list of replies # get the list of replies
if not replies_collection.get('first'): if not replies_collection.get('first'):
return result return result
@ -171,6 +176,9 @@ def _get_replies_to_post(post_json_object: {},
return result return result
items_list = replies_collection['first']['items'] items_list = replies_collection['first']['items']
print('DEBUG: get_replies_to_post items_list ' +
str(items_list))
if not isinstance(items_list, list): if not isinstance(items_list, list):
return result return result