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):
|
if not messageJson.get(param):
|
||||||
return False
|
return False
|
||||||
if not messageJson.get('to'):
|
if not messageJson.get('to'):
|
||||||
allowedWithoutToParam=['Follow','Request','Capability','Undo']
|
allowedWithoutToParam=['Follow','Request','Accept','Capability','Undo']
|
||||||
if messageJson['type'] not in allowedWithoutToParam:
|
if messageJson['type'] not in allowedWithoutToParam:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue