mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
f4da4d7512
commit
4a477bca88
5
inbox.py
5
inbox.py
|
|
@ -367,9 +367,12 @@ def inbox_permitted_message(domain: str, message_json: {},
|
||||||
'Follow', 'Join', 'Like', 'EmojiReact', 'Delete', 'Announce', 'Move',
|
'Follow', 'Join', 'Like', 'EmojiReact', 'Delete', 'Announce', 'Move',
|
||||||
'QuoteRequest', 'sm:ActorStatus', 'ActorStatus'
|
'QuoteRequest', 'sm:ActorStatus', 'ActorStatus'
|
||||||
)
|
)
|
||||||
if message_json['type'] not in always_allowed_types:
|
if message_json['type'] in always_allowed_types:
|
||||||
|
return True
|
||||||
|
|
||||||
if not has_object_dict(message_json):
|
if not has_object_dict(message_json):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# reject messages generated by LLM
|
# reject messages generated by LLM
|
||||||
# See fep-c81b
|
# See fep-c81b
|
||||||
if 'agentAttribution' in message_json['object']:
|
if 'agentAttribution' in message_json['object']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue