cc to individual recipients

main2
Bob Mottram 2019-11-07 20:51:29 +00:00
parent fc56f3199d
commit dd6916b580
1 changed files with 9 additions and 2 deletions

View File

@ -1671,7 +1671,12 @@ def sendToFollowers(session,baseDir: str, \
toDomain=toDomain.split(':')[0] toDomain=toDomain.split(':')[0]
cc='' cc=''
if withSharedInbox and postJsonObject['type']!='Update':
isUpdate=False
if postJsonObject['type']=='Update':
idUpdate=True
if withSharedInbox and not isUpdate:
toNickname=followerHandles[index].split('@')[0] toNickname=followerHandles[index].split('@')[0]
# if there are more than one followers on the domain # if there are more than one followers on the domain
@ -1712,6 +1717,8 @@ def sendToFollowers(session,baseDir: str, \
print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain) print('DEBUG: Sending from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
else: else:
print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain) print('DEBUG: Sending profile update from '+nickname+'@'+domain+' to '+toNickname+'@'+toDomain)
if isUpdate:
postJsonObject['cc']=[httpPrefix+'://'+toDomain+'/users/'+toNickname]
sendSignedJson(postJsonObject,session,baseDir, \ sendSignedJson(postJsonObject,session,baseDir, \
nickname,domain,port, \ nickname,domain,port, \
toNickname,toDomain,toPort, \ toNickname,toDomain,toPort, \
@ -1722,7 +1729,7 @@ def sendToFollowers(session,baseDir: str, \
if debug: if debug:
print('DEBUG: End of sendToFollowers') print('DEBUG: End of sendToFollowers')
time.sleep(2) time.sleep(4)
def sendToFollowersThread(session,baseDir: str, \ def sendToFollowersThread(session,baseDir: str, \
nickname: str, domain: str, port: int, \ nickname: str, domain: str, port: int, \