forked from indymedia/epicyon
Empty cc by default
parent
ec8b82ec9c
commit
832480ef47
2
posts.py
2
posts.py
|
@ -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,
|
||||
|
|
5
tests.py
5
tests.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue