From 0fa5522e6a41e180246634d5487743b642e33989 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 17 Dec 2022 12:18:04 -0700 Subject: [PATCH] Handle delete.note as well as delete.tombstone --- users/models/inbox_message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py index 526311d..6c36043 100644 --- a/users/models/inbox_message.py +++ b/users/models/inbox_message.py @@ -75,6 +75,8 @@ class InboxMessageStates(StateGraph): match instance.message_object_type: case "tombstone": await sync_to_async(Post.handle_delete_ap)(instance.message) + case "note": + await sync_to_async(Post.handle_delete_ap)(instance.message) case unknown: raise ValueError( f"Cannot handle activity of type delete.{unknown}"