Don't complain on delete on unknown URIs

This commit is contained in:
Andrew Godwin 2022-12-31 10:49:45 -07:00
parent 4956c7cd7a
commit 8fe99718f3

View file

@ -109,9 +109,8 @@ class InboxMessageStates(StateGraph):
).aexists(): ).aexists():
await sync_to_async(Post.handle_delete_ap)(instance.message) await sync_to_async(Post.handle_delete_ap)(instance.message)
else: else:
raise ValueError( # It is presumably already deleted
f"Cannot handle activity of type delete on URI {instance.message['object']}" pass
)
else: else:
match instance.message_object_type: match instance.message_object_type:
case "tombstone": case "tombstone":