From 832480ef4752d474dd58dded3bb021b6f59c6de6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 1 Jul 2019 13:51:55 +0100 Subject: [PATCH] Empty cc by default --- posts.py | 2 ++ tests.py | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 5499e16d5..17c055930 100644 --- a/posts.py +++ b/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, diff --git a/tests.py b/tests.py index 8a7f51ed2..dea78c0f2 100644 --- a/tests.py +++ b/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)