Less indentation

main
bashrc 2026-04-22 16:14:32 +01:00
parent f4da4d7512
commit 4a477bca88
1 changed files with 20 additions and 17 deletions

View File

@ -367,9 +367,12 @@ def inbox_permitted_message(domain: str, message_json: {},
'Follow', 'Join', 'Like', 'EmojiReact', 'Delete', 'Announce', 'Move',
'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):
return True
# reject messages generated by LLM
# See fep-c81b
if 'agentAttribution' in message_json['object']: