From cf45b71946ee5e725f3426e8feb49472e222246d Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Mon, 6 Mar 2023 15:12:25 +0000 Subject: [PATCH] simplify further --- get_context.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/get_context.py b/get_context.py index a657d69..92966f9 100644 --- a/get_context.py +++ b/get_context.py @@ -36,9 +36,6 @@ def pull_context( """Do the same with any toots on the key owner's home timeline """ timeline_toots = get_timeline(server, access_token, max_home_timeline_length) known_context_urls = get_all_known_context_urls(server, timeline_toots) - replied_toot_ids = get_all_replied_toot_server_ids( - server, timeline_toots, replied_toot_server_ids - ) add_context_urls(server, access_token, known_context_urls, seen_urls) def get_timeline(server, access_token, max): @@ -318,8 +315,8 @@ def add_context_urls(server, access_token, context_urls, seen_urls): count = 0 for url in context_urls: if url not in seen_urls: - seen_urls.add(url) add_context_url(url, server, access_token) + seen_urls.add(url) count += 1 print(f"Added {count} new context toots")