summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/models/inbox_message.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py
index 43424c9..6dbf5e8 100644
--- a/users/models/inbox_message.py
+++ b/users/models/inbox_message.py
@@ -12,12 +12,16 @@ class InboxMessageStates(StateGraph):
@classmethod
async def handle_received(cls, instance: "InboxMessage"):
- from activities.models import Post
+ from activities.models import Post, PostInteraction
from users.models import Follow
match instance.message_type:
case "follow":
await sync_to_async(Follow.handle_request_ap)(instance.message)
+ case "announce":
+ await sync_to_async(PostInteraction.handle_ap)(instance.message)
+ case "like":
+ await sync_to_async(PostInteraction.handle_ap)(instance.message)
case "create":
match instance.message_object_type:
case "note":