mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
7bfec15b0d
commit
51c9e4dd12
5
utils.py
5
utils.py
|
@ -3628,9 +3628,8 @@ def post_summary_contains_links(message_json: {}) -> bool:
|
|||
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':
|
||||
if message_json['object']['type'] not in ('Person',
|
||||
'Application', 'Group'):
|
||||
if len(message_json['object']['summary']) > 1024:
|
||||
actor_url = get_actor_from_post(message_json)
|
||||
print('INBOX: summary is too long ' +
|
||||
|
|
Loading…
Reference in New Issue