Skip to content

Commit

Permalink
Properly handle Author targeting blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
manfre authored and andrewgodwin committed Jan 27, 2023
1 parent 8a06b3d commit 6437a5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activities/models/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,10 @@ async def aget_targets(self) -> Iterable[Identity]:
.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()
Expand Down

0 comments on commit 6437a5a

Please sign in to comment.