mirror of https://gitlab.com/bashrc2/epicyon
Reduce indentation
parent
3fc0a69e3f
commit
c36a8a0401
3
inbox.py
3
inbox.py
|
@ -178,7 +178,8 @@ def inboxPermittedMessage(domain: str,messageJson: {},federationList: []) -> boo
|
|||
|
||||
alwaysAllowedTypes=('Follow','Like','Delete','Announce')
|
||||
if messageJson['type'] not in alwaysAllowedTypes:
|
||||
if messageJson.get('object'):
|
||||
if not messageJson.get('object'):
|
||||
return True
|
||||
if not isinstance(messageJson['object'], dict):
|
||||
return False
|
||||
if messageJson['object'].get('inReplyTo'):
|
||||
|
|
Loading…
Reference in New Issue