diff --git a/posts.py b/posts.py index 73faa4d7..359c95f7 100644 --- a/posts.py +++ b/posts.py @@ -1069,16 +1069,13 @@ def sendToNamedAddresses(session,baseDir: str, \ return if not postJsonObject.get('object'): return - toList=[] if isinstance(postJsonObject['object'], dict): if not postJsonObject['object'].get('to'): return - toList=postJsonObject['object']['to'] recipientsObject=postJsonObject['object'] else: if not postJsonObject.get('to'): return - toList=postJsonObject['to'] recipientsObject=postJsonObject recipients=[]