only request context to a toot, if we know context exists

This commit is contained in:
nanos 2023-04-01 08:43:50 +01:00
parent f51d19730b
commit 56039cfdea

View file

@ -170,7 +170,7 @@ def add_post_with_context(post, server, access_token, seen_urls):
added = add_context_url(post['url'], server, access_token)
if added is True:
seen_urls.add(post['url'])
if arguments.backfill_with_context:
if (post['replies_count'] or post['in_reply_to_id']) and arguments.backfill_with_context:
parsed_urls = {}
parsed = parse_url(post['url'], parsed_urls)
if parsed == None: