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 = {
'type': 'Follow',
'actor': httpPrefix+'://'+domain+'/users/'+nickname,
'object': followHttpPrefix+'://'+followDomain+'/users/'+followNickname,
'to': [toUrl],
'cc': []
'object': followHttpPrefix+'://'+followDomain+'/users/'+followNickname
}
if ccUrl:
if len(ccUrl)>0:
newFollowJson['cc']=ccUrl
sendSignedJson(newFollowJson,session,baseDir,nickname,domain,port, \
nicknameToFollow,domainToFollow,toPort, '', \
httpPrefix,saveToFile,clientToServer,federationList, \