Reverse posts in conversation

main
Bob Mottram 2022-12-23 22:10:24 +00:00
parent 5082b24dfa
commit 6ebb6d45a9
1 changed files with 2 additions and 2 deletions

View File

@ -6099,7 +6099,7 @@ def download_conversation_posts(session, http_prefix: str, base_dir: str,
'object': post_json
}
post_json = wrapped_post
conversation_thread.append(post_json)
conversation_thread = [post_json] + conversation_thread
if not post_json['object'].get('inReplyTo'):
if debug:
print(post_id + ' is not a reply')
@ -6117,4 +6117,4 @@ def download_conversation_posts(session, http_prefix: str, base_dir: str,
if debug:
if not post_json:
print(post_id + ' returned no json')
return conversation_thread.reverse()
return conversation_thread