From 4e1e4d0ea82b9596afdf580fc15cee957264575a Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 15 Sep 2022 22:19:01 +0200 Subject: [PATCH] Tweak actor update --- app/boxes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index cda7ae0..b475a50 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -1422,7 +1422,8 @@ async def _handle_update_activity( updated_actor = RemoteActor(wrapped_object) if ( from_actor.ap_id != updated_actor.ap_id - or from_actor.ap_type != updated_actor.ap_type + or ap.as_list(from_actor.ap_type)[0] not in ap.ACTOR_TYPES + or ap.as_list(updated_actor.ap_type)[0] not in ap.ACTOR_TYPES or from_actor.handle != updated_actor.handle ): raise ValueError(