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')):
|
message_json['object'].get('summary')):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if message_json['object']['type'] != 'Person' and \
|
if message_json['object']['type'] not in ('Person',
|
||||||
message_json['object']['type'] != 'Application' and \
|
'Application', 'Group'):
|
||||||
message_json['object']['type'] != 'Group':
|
|
||||||
if len(message_json['object']['summary']) > 1024:
|
if len(message_json['object']['summary']) > 1024:
|
||||||
actor_url = get_actor_from_post(message_json)
|
actor_url = get_actor_from_post(message_json)
|
||||||
print('INBOX: summary is too long ' +
|
print('INBOX: summary is too long ' +
|
||||||
|
|
Loading…
Reference in New Issue