From 80b62314ad95b9e90b346e1f5000cd75bd2be20e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Oct 2019 15:09:48 +0100 Subject: [PATCH] Outside of loop --- inbox.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index cdb10b84c..2d11d61e7 100644 --- a/inbox.py +++ b/inbox.py @@ -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]