From 006efc1ba4008d537ad8f78a3d4ca9c85aff48b3 Mon Sep 17 00:00:00 2001 From: Dmytro Poltavchenko Date: Sun, 8 Jan 2023 00:23:36 +0000 Subject: [PATCH] Do not check instance's actor.type in case of Pleroma/Akkoma --- relay/processors.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/relay/processors.py b/relay/processors.py index 2d34246..1dca6c6 100644 --- a/relay/processors.py +++ b/relay/processors.py @@ -11,12 +11,12 @@ cache = LRUCache(1024) def person_check(actor, software): - ## pleroma and akkoma use Person for the actor type for some reason - if software in {'akkoma', 'pleroma'} and actor.id != f'https://{actor.domain}/relay': - return True + ## pleroma and akkoma may use Person for the actor type for some reason + if software in {'akkoma', 'pleroma'} and actor.id == f'https://{actor.domain}/relay': + return False ## make sure the actor is an application - elif actor.type != 'Application': + if actor.type != 'Application': return True