forked from indymedia/epicyon
Tidy follow request
parent
bd970f2591
commit
f3065516ae
|
@ -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, \
|
||||||
|
|
Loading…
Reference in New Issue