mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 15:21:01 +00:00
Don't complain on delete on unknown URIs
This commit is contained in:
parent
4956c7cd7a
commit
8fe99718f3
1 changed files with 2 additions and 3 deletions
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue