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,
|
'actor': prefix+'://'+domain+'/users/'+username,
|
||||||
'published': published,
|
'published': published,
|
||||||
'to': [toUrl],
|
'to': [toUrl],
|
||||||
|
'cc': [],
|
||||||
'object': {'id': newPostId,
|
'object': {'id': newPostId,
|
||||||
'type': 'Note',
|
'type': 'Note',
|
||||||
'summary': summary,
|
'summary': summary,
|
||||||
|
@ -282,6 +283,7 @@ def createPostBase(baseDir: str,username: str, domain: str, port: int,toUrl: str
|
||||||
'url': prefix+'://'+domain+'/@'+username+'/'+statusNumber,
|
'url': prefix+'://'+domain+'/@'+username+'/'+statusNumber,
|
||||||
'attributedTo': prefix+'://'+domain+'/users/'+username,
|
'attributedTo': prefix+'://'+domain+'/users/'+username,
|
||||||
'to': [toUrl],
|
'to': [toUrl],
|
||||||
|
'cc': [],
|
||||||
'sensitive': sensitive,
|
'sensitive': sensitive,
|
||||||
'atomUri': prefix+'://'+domain+'/users/'+username+'/statuses/'+statusNumber,
|
'atomUri': prefix+'://'+domain+'/users/'+username+'/statuses/'+statusNumber,
|
||||||
'inReplyToAtomUri': inReplyToAtomUri,
|
'inReplyToAtomUri': inReplyToAtomUri,
|
||||||
|
|
5
tests.py
5
tests.py
|
@ -186,7 +186,10 @@ def testPostMessageBetweenServers():
|
||||||
subject=None
|
subject=None
|
||||||
aliceSendThreads = []
|
aliceSendThreads = []
|
||||||
alicePostLog = []
|
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))
|
print('sendResult: '+str(sendResult))
|
||||||
|
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
|
|
Loading…
Reference in New Issue