Empty cc by default

master
Bob Mottram 2019-07-01 13:51:55 +01:00
parent ec8b82ec9c
commit 832480ef47
2 changed files with 6 additions and 1 deletions

View File

@ -274,6 +274,7 @@ def createPostBase(baseDir: str,username: str, domain: str, port: int,toUrl: str
'actor': prefix+'://'+domain+'/users/'+username,
'published': published,
'to': [toUrl],
'cc': [],
'object': {'id': newPostId,
'type': 'Note',
'summary': summary,
@ -282,6 +283,7 @@ def createPostBase(baseDir: str,username: str, domain: str, port: int,toUrl: str
'url': prefix+'://'+domain+'/@'+username+'/'+statusNumber,
'attributedTo': prefix+'://'+domain+'/users/'+username,
'to': [toUrl],
'cc': [],
'sensitive': sensitive,
'atomUri': prefix+'://'+domain+'/users/'+username+'/statuses/'+statusNumber,
'inReplyToAtomUri': inReplyToAtomUri,

View File

@ -186,7 +186,10 @@ def testPostMessageBetweenServers():
subject=None
aliceSendThreads = []
alicePostLog = []
sendResult = sendPost(sessionAlice,aliceDir,'alice', '127.0.0.1', alicePort, 'bob', '127.0.0.1', bobPort, None, https, 'Why is a mouse when it spins?', False, True, federationList, aliceSendThreads, alicePostLog, inReplyTo, inReplyToAtomUri, subject)
followersOnly=False
saveToFile=True
ccUrl=None
sendResult = sendPost(sessionAlice,aliceDir,'alice', '127.0.0.1', alicePort, 'bob', '127.0.0.1', bobPort, ccUrl, https, 'Why is a mouse when it spins?', followersOnly, saveToFile, federationList, aliceSendThreads, alicePostLog, inReplyTo, inReplyToAtomUri, subject)
print('sendResult: '+str(sendResult))
time.sleep(15)