This commit is contained in:
Eliot Berriot 2019-12-07 11:20:53 +01:00
parent 7e88cb32ac
commit 9a3bd5bb87
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
1 changed files with 10 additions and 2 deletions

View File

@ -330,10 +330,18 @@ class OutboxRouter(Router):
cc = activity_data["payload"].pop("cc", [])
a = models.Activity(**activity_data)
a.uuid = uuid.uuid4()
to_inbox_items, to_deliveries, new_to = prepare_deliveries_and_inbox_items(
(
to_inbox_items,
to_deliveries,
new_to,
) = prepare_deliveries_and_inbox_items(
to, "to", allowed_domains=allowed_domains
)
cc_inbox_items, cc_deliveries, new_cc = prepare_deliveries_and_inbox_items(
(
cc_inbox_items,
cc_deliveries,
new_cc,
) = prepare_deliveries_and_inbox_items(
cc, "cc", allowed_domains=allowed_domains
)
if not any(