From 30e9b1f62de52d6c3776af6498212b94e8ee990b Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 12 Nov 2023 12:35:11 -0700 Subject: [PATCH] Ignore more Lemmy things --- users/views/activitypub.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/users/views/activitypub.py b/users/views/activitypub.py index effbf5b..93f5034 100644 --- a/users/views/activitypub.py +++ b/users/views/activitypub.py @@ -176,7 +176,13 @@ class Inbox(View): # See if it's a type of message we know we want to ignore right now # (e.g. Lemmy likes/dislikes, which we can't process anyway) - if document_type == "Announce" and document_subtype in ["Like", "Dislike"]: + if document_type == "Announce" and document_subtype in [ + "Like", + "Dislike", + "Create", + "Undo", + "Update", + ]: return HttpResponse(status=202) # authenticate HTTP signature first, if one is present and the actor