From 56039cfdea8362cf86669c687a1cd412af16dfa1 Mon Sep 17 00:00:00 2001 From: nanos Date: Sat, 1 Apr 2023 08:43:50 +0100 Subject: [PATCH] only request context to a toot, if we know context exists --- find_posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_posts.py b/find_posts.py index 2ed7da2..b0044be 100644 --- a/find_posts.py +++ b/find_posts.py @@ -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: