Fix delete for unknown object

main
Thomas Sileo 2022-08-18 22:36:39 +02:00
parent d3b7f6ccbb
commit 1e8a4f933e
1 changed files with 1 additions and 1 deletions

View File

@ -842,7 +842,7 @@ async def _handle_delete_activity(
relates_to_inbox_object: models.InboxObject | None,
forwarded_by_actor: models.Actor | None,
) -> None:
ap_object_to_delete: models.InboxObject | models.Actor | None
ap_object_to_delete: models.InboxObject | models.Actor | None = None
if relates_to_inbox_object:
ap_object_to_delete = relates_to_inbox_object
elif delete_activity.activity_object_ap_id: