Ignore lemmy-flavour likes and dislikes
This commit is contained in:
parent
e6e64f1000
commit
d815aa53e1
|
@ -26,6 +26,10 @@ class InboxMessageStates(StateGraph):
|
||||||
case "block":
|
case "block":
|
||||||
Block.handle_ap(instance.message)
|
Block.handle_ap(instance.message)
|
||||||
case "announce":
|
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)
|
PostInteraction.handle_ap(instance.message)
|
||||||
case "like":
|
case "like":
|
||||||
PostInteraction.handle_ap(instance.message)
|
PostInteraction.handle_ap(instance.message)
|
||||||
|
|
Loading…
Reference in New Issue