From 1e8a4f933e082ba1b4aaf9311ba11ccf1a1528c8 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 18 Aug 2022 22:36:39 +0200 Subject: [PATCH] Fix delete for unknown object --- app/boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index 1f9b1ec..c30305b 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -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: