From c3caf26f22c89806a3c3fcb3f694063289a321c7 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 16 Jan 2023 11:27:23 -0700 Subject: [PATCH] Ignore emoji react undos as well --- users/models/inbox_message.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py index c50de37..79d4f4e 100644 --- a/users/models/inbox_message.py +++ b/users/models/inbox_message.py @@ -98,6 +98,9 @@ class InboxMessageStates(StateGraph): await sync_to_async(PostInteraction.handle_undo_ap)( instance.message ) + case "http://litepub.social/ns#emojireact": + # We're ignoring emoji reactions for now + pass case unknown: raise ValueError( f"Cannot handle activity of type undo.{unknown}"