Actually do deletes right
This commit is contained in:
parent
f491fdb56e
commit
2d7f33879f
|
@ -68,6 +68,7 @@ class InboxMessageStates(StateGraph):
|
||||||
# If there is no object type, it's probably a profile
|
# If there is no object type, it's probably a profile
|
||||||
if not isinstance(instance.message["object"], dict):
|
if not isinstance(instance.message["object"], dict):
|
||||||
await sync_to_async(Identity.handle_delete_ap)(instance.message)
|
await sync_to_async(Identity.handle_delete_ap)(instance.message)
|
||||||
|
else:
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue