mirror of https://gitlab.com/bashrc2/epicyon
Tidying
parent
f3dad2b1de
commit
f4da4d7512
9
inbox.py
9
inbox.py
|
|
@ -338,10 +338,11 @@ def inbox_message_has_params(message_json: {}) -> bool:
|
|||
return False
|
||||
|
||||
if not message_json.get('to'):
|
||||
allowed_without_to_param = ['Like', 'EmojiReact',
|
||||
'Follow', 'Join', 'Request',
|
||||
'Accept', 'Capability', 'Undo',
|
||||
'Move', 'sm:ActorStatus', 'ActorStatus']
|
||||
allowed_without_to_param = [
|
||||
'Like', 'EmojiReact', 'Follow', 'Join', 'Request',
|
||||
'Accept', 'Capability', 'Undo', 'Move', 'sm:ActorStatus',
|
||||
'ActorStatus'
|
||||
]
|
||||
if message_json['type'] not in allowed_without_to_param:
|
||||
return False
|
||||
return True
|
||||
|
|
|
|||
Loading…
Reference in New Issue