Ignore lemmy-flavour likes and dislikes
This commit is contained in:
parent
e6e64f1000
commit
d815aa53e1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue