Outside of loop

main2
Bob Mottram 2019-10-04 15:09:48 +01:00
parent 33b7393a77
commit 80b62314ad
1 changed files with 3 additions and 3 deletions

View File

@ -1300,6 +1300,9 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
postJsonObject['cc']=[]
postJsonObject['object']['to']=postJsonObject['to']
postJsonObject['object']['cc']=postJsonObject['cc']
# set subject
if not postJsonObject['object'].get('summary'):
postJsonObject['object']['summary']='General Discussion'
if ':' in domain:
domain=domain.split(':')[0]
with open(followersFile, 'r') as groupMembers:
@ -1307,9 +1310,6 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
if memberHandle!=handle:
memberNickname=memberHandle.split('@')[0]
memberDomain=memberHandle.split('@')[1]
# set subject
if not postJsonObject['object'].get('summary'):
postJsonObject['object']['summary']='General Discussion'
memberPort=port
if ':' in memberDomain:
memberPortStr=memberDomain.split(':')[1]