Include accept as a type allowed not to have 'to'

master
Bob Mottram 2019-08-18 12:35:26 +01:00
parent a897ebe114
commit 8d4d09f047
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def inboxMessageHasParams(messageJson: {}) -> bool:
if not messageJson.get(param):
return False
if not messageJson.get('to'):
allowedWithoutToParam=['Follow','Request','Capability','Undo']
allowedWithoutToParam=['Follow','Request','Accept','Capability','Undo']
if messageJson['type'] not in allowedWithoutToParam:
return False
return True