Handle delete.note as well as delete.tombstone
This commit is contained in:
parent
256ebe56d5
commit
0fa5522e6a
|
@ -75,6 +75,8 @@ class InboxMessageStates(StateGraph):
|
||||||
match instance.message_object_type:
|
match instance.message_object_type:
|
||||||
case "tombstone":
|
case "tombstone":
|
||||||
await sync_to_async(Post.handle_delete_ap)(instance.message)
|
await sync_to_async(Post.handle_delete_ap)(instance.message)
|
||||||
|
case "note":
|
||||||
|
await sync_to_async(Post.handle_delete_ap)(instance.message)
|
||||||
case unknown:
|
case unknown:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
f"Cannot handle activity of type delete.{unknown}"
|
f"Cannot handle activity of type delete.{unknown}"
|
||||||
|
|
Loading…
Reference in New Issue