temporarily disable is_enabled checks in ATProto/ActivityPub.convert

for manual testing
pull/962/head
Ryan Barrett 2024-04-14 14:50:02 -07:00
rodzic cf633efecf
commit f840c8b784
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
2 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -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 {

Wyświetl plik

@ -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