mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
edc5a8c463
commit
b2201d33f1
6
utils.py
6
utils.py
|
@ -5443,8 +5443,10 @@ def local_only_is_local(message_json: {}, domain_full: str) -> bool:
|
|||
def post_summary_contains_links(message_json: {}) -> bool:
|
||||
"""check if the json post summary contains links
|
||||
"""
|
||||
if message_json['object'].get('type') and \
|
||||
message_json['object'].get('summary'):
|
||||
if not (message_json['object'].get('type') and
|
||||
message_json['object'].get('summary')):
|
||||
return False
|
||||
|
||||
if message_json['object']['type'] != 'Person' and \
|
||||
message_json['object']['type'] != 'Application' and \
|
||||
message_json['object']['type'] != 'Group':
|
||||
|
|
Loading…
Reference in New Issue