From 128579f0dc8fd1a7da9d69775c8ebed433548c1b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Oct 2019 15:15:46 +0100 Subject: [PATCH] Tidying --- inbox.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inbox.py b/inbox.py index 2d11d61e7..0333583fd 100644 --- a/inbox.py +++ b/inbox.py @@ -1295,11 +1295,12 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject if port!=80 and port !=443: domain=domain+':'+str(port) # set sender + cc='https://www.w3.org/ns/activitystreams#Public' postJsonObject['actor']=[httpPrefix+'://'+domain+'/users/'+nickname] postJsonObject['to']=[httpPrefix+'://'+domain+'/users/'+nickname+'/followers'] - postJsonObject['cc']=[] + postJsonObject['cc']=[cc] postJsonObject['object']['to']=postJsonObject['to'] - postJsonObject['object']['cc']=postJsonObject['cc'] + postJsonObject['object']['cc']=[cc] # set subject if not postJsonObject['object'].get('summary'): postJsonObject['object']['summary']='General Discussion' @@ -1318,8 +1319,7 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject memberDomain=memberDomain.split(':')[0] sendSignedJson(postJsonObject,session,baseDir, \ nickname,domain,port, \ - memberNickname,memberDomain,memberPort, \ - 'https://www.w3.org/ns/activitystreams#Public', \ + memberNickname,memberDomain,memberPort,cc, \ httpPrefix,False,False,federationList, \ sendThreads,postLog,cachedWebfingers, \ personCache,debug,projectVersion)