Ignore lemmy-flavour likes and dislikes

This commit is contained in:
Andrew Godwin 2023-11-12 11:21:23 -07:00
parent e6e64f1000
commit d815aa53e1

View file

@ -26,6 +26,10 @@ class InboxMessageStates(StateGraph):
case "block":
Block.handle_ap(instance.message)
case "announce":
# Ignore Lemmy-specific likes and dislikes for perf reasons
# (we can't parse them anyway)
if instance.message_object_type in ["like", "dislike"]:
return cls.processed
PostInteraction.handle_ap(instance.message)
case "like":
PostInteraction.handle_ap(instance.message)