Only consider local replies

pull/654/head
Andrew Godwin 2023-11-12 16:31:20 -07:00
rodzic 99e7fb8639
commit 476f817464
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -32,9 +32,10 @@ class Command(BaseCommand):
print(f" found {len(post_ids_and_uris)}")
# Fetch all of their replies and exclude any that have local replies
print("Excluding ones with replies...")
print("Excluding ones with local replies...")
replies = Post.objects.filter(
in_reply_to__in=post_ids_and_uris.keys()
local=True,
in_reply_to__in=post_ids_and_uris.keys(),
).values_list("in_reply_to", flat=True)
for reply in replies:
if reply and reply in post_ids_and_uris: