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
|
return False
|
||||||
|
|
||||||
if not message_json.get('to'):
|
if not message_json.get('to'):
|
||||||
allowed_without_to_param = ['Like', 'EmojiReact',
|
allowed_without_to_param = [
|
||||||
'Follow', 'Join', 'Request',
|
'Like', 'EmojiReact', 'Follow', 'Join', 'Request',
|
||||||
'Accept', 'Capability', 'Undo',
|
'Accept', 'Capability', 'Undo', 'Move', 'sm:ActorStatus',
|
||||||
'Move', 'sm:ActorStatus', 'ActorStatus']
|
'ActorStatus'
|
||||||
|
]
|
||||||
if message_json['type'] not in allowed_without_to_param:
|
if message_json['type'] not in allowed_without_to_param:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue