From 8d4d09f047e447fe13cb7c32caced480a1bbc832 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 18 Aug 2019 12:35:26 +0100 Subject: [PATCH] Include accept as a type allowed not to have 'to' --- inbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 31647ef78..fb5df0406 100644 --- a/inbox.py +++ b/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