mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 08:41:00 +00:00
Properly handle Author targeting blocks
This commit is contained in:
parent
8a06b3d78f
commit
6437a5aeb7
1 changed files with 4 additions and 1 deletions
|
@ -724,7 +724,10 @@ class Post(StatorModel):
|
||||||
.select_related("target")
|
.select_related("target")
|
||||||
)
|
)
|
||||||
async for block in blocks:
|
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
|
# Now dedupe the targets based on shared inboxes (we only keep one per
|
||||||
# shared inbox)
|
# shared inbox)
|
||||||
deduped_targets = set()
|
deduped_targets = set()
|
||||||
|
|
Loading…
Reference in a new issue