From f840c8b7844689169ebb0c637ae1020523640923 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Sun, 14 Apr 2024 14:50:02 -0700 Subject: [PATCH] temporarily disable is_enabled checks in ATProto/ActivityPub.convert for manual testing --- activitypub.py | 5 +++-- atproto.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/activitypub.py b/activitypub.py index ad11608..12f3d06 100644 --- a/activitypub.py +++ b/activitypub.py @@ -362,8 +362,9 @@ class ActivityPub(User, Protocol): from_proto = PROTOCOLS.get(obj.source_protocol) user_id = from_user.key.id() if from_user and from_user.key else None - if from_proto and not common.is_enabled(cls, from_proto, handle_or_id=user_id): - error(f'{cls.LABEL} <=> {from_proto.LABEL} not enabled') + # TODO: uncomment + # if from_proto and not common.is_enabled(cls, from_proto, handle_or_id=user_id): + # error(f'{cls.LABEL} <=> {from_proto.LABEL} not enabled') if obj.as2: return { diff --git a/atproto.py b/atproto.py index 4762c45..efeabc3 100644 --- a/atproto.py +++ b/atproto.py @@ -501,8 +501,9 @@ class ATProto(User, Protocol): """ from_proto = PROTOCOLS.get(obj.source_protocol) user_id = from_user.key.id() if from_user and from_user.key else None - if from_proto and not common.is_enabled(cls, from_proto, handle_or_id=user_id): - error(f'{cls.LABEL} <=> {from_proto.LABEL} not enabled') + # TODO: uncomment + # if from_proto and not common.is_enabled(cls, from_proto, handle_or_id=user_id): + # error(f'{cls.LABEL} <=> {from_proto.LABEL} not enabled') if obj.bsky: return obj.bsky