mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-28 18:21:00 +00:00
Ignore lemmy-flavour likes and dislikes
This commit is contained in:
parent
e6e64f1000
commit
d815aa53e1
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue