From 71a4ea24255089df5a79042ae6ac3bd3519c92fd Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 26 Nov 2022 11:08:14 +0100 Subject: [PATCH] fix typo on deleted object ap_type --- app/boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index 8ebd7e2..41987a6 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1379,7 +1379,7 @@ async def _revert_side_effect_for_deleted_object( .values(likes_count=likes_count - 1) ) elif ( - deleted_ap_object.ap_type == "Annouce" + deleted_ap_object.ap_type == "Announce" and deleted_ap_object.activity_object_ap_id ): related_object = await get_outbox_object_by_ap_id(