Properly handle Author targeting blocks

pull/477/head
Michael Manfre 2023-01-25 22:36:02 -05:00 zatwierdzone przez Andrew Godwin
rodzic 8a06b3d78f
commit 6437a5aeb7
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -724,7 +724,10 @@ class Post(StatorModel):
.select_related("target")
)
async for block in blocks:
targets.remove(block.target)
try:
targets.remove(block.target)
except KeyError:
pass
# Now dedupe the targets based on shared inboxes (we only keep one per
# shared inbox)
deduped_targets = set()