Tidy follow request

master
Bob Mottram 2019-07-06 10:36:00 +01:00
parent bd970f2591
commit f3065516ae
1 changed files with 1 additions and 7 deletions

View File

@ -283,15 +283,9 @@ def sendFollowRequest(baseDir: str,nickname: str,domain: str,port: int,httpPrefi
newFollowJson = { newFollowJson = {
'type': 'Follow', 'type': 'Follow',
'actor': httpPrefix+'://'+domain+'/users/'+nickname, 'actor': httpPrefix+'://'+domain+'/users/'+nickname,
'object': followHttpPrefix+'://'+followDomain+'/users/'+followNickname, 'object': followHttpPrefix+'://'+followDomain+'/users/'+followNickname
'to': [toUrl],
'cc': []
} }
if ccUrl:
if len(ccUrl)>0:
newFollowJson['cc']=ccUrl
sendSignedJson(newFollowJson,session,baseDir,nickname,domain,port, \ sendSignedJson(newFollowJson,session,baseDir,nickname,domain,port, \
nicknameToFollow,domainToFollow,toPort, '', \ nicknameToFollow,domainToFollow,toPort, '', \
httpPrefix,saveToFile,clientToServer,federationList, \ httpPrefix,saveToFile,clientToServer,federationList, \