summaryrefslogtreecommitdiffstats
path: root/users/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-17 12:18:04 -0700
committerAndrew Godwin2022-12-17 12:18:04 -0700
commit0fa5522e6a41e180246634d5487743b642e33989 (patch)
tree275946e6bbe8a45663bdcd096ed09fa76fbeb9dc /users/models
parent256ebe56d5f9f6d8e18ae61e9406a8d33ed4b1a1 (diff)
downloadtakahe-0fa5522e6a41e180246634d5487743b642e33989.tar.gz
takahe-0fa5522e6a41e180246634d5487743b642e33989.tar.bz2
takahe-0fa5522e6a41e180246634d5487743b642e33989.zip
Handle delete.note as well as delete.tombstone
Diffstat (limited to 'users/models')
-rw-r--r--users/models/inbox_message.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py
index 526311d..6c36043 100644
--- a/users/models/inbox_message.py
+++ b/users/models/inbox_message.py
@@ -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}"