mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 10:11:01 +00:00
Only consider local replies
This commit is contained in:
parent
99e7fb8639
commit
476f817464
1 changed files with 3 additions and 2 deletions
|
@ -32,9 +32,10 @@ class Command(BaseCommand):
|
||||||
print(f" found {len(post_ids_and_uris)}")
|
print(f" found {len(post_ids_and_uris)}")
|
||||||
|
|
||||||
# Fetch all of their replies and exclude any that have local replies
|
# 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(
|
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)
|
).values_list("in_reply_to", flat=True)
|
||||||
for reply in replies:
|
for reply in replies:
|
||||||
if reply and reply in post_ids_and_uris:
|
if reply and reply in post_ids_and_uris:
|
||||||
|
|
Loading…
Reference in a new issue