Handle delete.note as well as delete.tombstone

This commit is contained in:
Andrew Godwin 2022-12-17 12:18:04 -07:00
parent 256ebe56d5
commit 0fa5522e6a

View File

@ -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}"