allow us to disable a portion
This commit is contained in:
parent
fd8a3404d9
commit
6ee0908906
1 changed files with 14 additions and 13 deletions
|
@ -17,19 +17,20 @@ def pull_context(
|
||||||
reply_interval_hours,
|
reply_interval_hours,
|
||||||
max_home_timeline_length,
|
max_home_timeline_length,
|
||||||
):
|
):
|
||||||
"""pull the context toots of toots user replied to, from their
|
if reply_interval_hours > 0:
|
||||||
original server, and add them to the local server."""
|
"""pull the context toots of toots user replied to, from their
|
||||||
user_ids = get_active_user_ids(server, access_token, reply_interval_hours)
|
original server, and add them to the local server."""
|
||||||
reply_toots = get_all_reply_toots(
|
user_ids = get_active_user_ids(server, access_token, reply_interval_hours)
|
||||||
server, user_ids, access_token, seen_urls, reply_interval_hours
|
reply_toots = get_all_reply_toots(
|
||||||
)
|
server, user_ids, access_token, seen_urls, reply_interval_hours
|
||||||
known_context_urls = get_all_known_context_urls(server, reply_toots)
|
)
|
||||||
seen_urls.update(known_context_urls)
|
known_context_urls = get_all_known_context_urls(server, reply_toots)
|
||||||
replied_toot_ids = get_all_replied_toot_server_ids(
|
seen_urls.update(known_context_urls)
|
||||||
server, reply_toots, replied_toot_server_ids
|
replied_toot_ids = get_all_replied_toot_server_ids(
|
||||||
)
|
server, reply_toots, replied_toot_server_ids
|
||||||
context_urls = get_all_context_urls(server, replied_toot_ids)
|
)
|
||||||
add_context_urls(server, access_token, context_urls, seen_urls)
|
context_urls = get_all_context_urls(server, replied_toot_ids)
|
||||||
|
add_context_urls(server, access_token, context_urls, seen_urls)
|
||||||
|
|
||||||
|
|
||||||
if max_home_timeline_length > 0:
|
if max_home_timeline_length > 0:
|
||||||
|
|
Loading…
Reference in a new issue