Reverse posts in conversation

merge-requests/30/head
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 'object': post_json
} }
post_json = wrapped_post post_json = wrapped_post
conversation_thread.append(post_json) conversation_thread = [post_json] + conversation_thread
if not post_json['object'].get('inReplyTo'): if not post_json['object'].get('inReplyTo'):
if debug: if debug:
print(post_id + ' is not a reply') 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 debug:
if not post_json: if not post_json:
print(post_id + ' returned no json') print(post_id + ' returned no json')
return conversation_thread.reverse() return conversation_thread