forked from indymedia/epicyon
Include accept as a type allowed not to have 'to'
parent
a897ebe114
commit
8d4d09f047
2
inbox.py
2
inbox.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue