Quote toot detection

main
Bob Mottram 2022-12-24 16:52:16 +00:00
parent aa2f2de21c
commit 7383588305
1 changed files with 2 additions and 1 deletions

View File

@ -4132,6 +4132,7 @@ def save_reverse_timeline(base_dir: str, reverse_sequence: []) -> []:
def is_quote_toot(post_json_object: str) -> bool:
"""Returns true if the given post is a quote toot
"""
if post_json_object['object'].get('quoteUri'):
if post_json_object['object'].get('quoteUri') or \
post_json_object['object'].get('quoteUrl'):
return True
return False