diff options
author | Andrew Godwin | 2022-12-17 12:18:04 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-17 12:18:04 -0700 |
commit | 0fa5522e6a41e180246634d5487743b642e33989 (patch) | |
tree | 275946e6bbe8a45663bdcd096ed09fa76fbeb9dc | |
parent | 256ebe56d5f9f6d8e18ae61e9406a8d33ed4b1a1 (diff) | |
download | takahe-0fa5522e6a41e180246634d5487743b642e33989.tar.gz takahe-0fa5522e6a41e180246634d5487743b642e33989.tar.bz2 takahe-0fa5522e6a41e180246634d5487743b642e33989.zip |
Handle delete.note as well as delete.tombstone
-rw-r--r-- | users/models/inbox_message.py | 2 |
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}" |