Use full domain

main2
Bob Mottram 2019-10-04 15:43:46 +01:00
parent a478588e1f
commit 5b1692a3c7
1 changed files with 4 additions and 3 deletions

View File

@ -1290,6 +1290,7 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
nickname=handle.split('@')[0]
groupname=getGroupName(baseDir,handle)
domain=handle.split('@')[1]
domainFull=domain
if ':' not in domain:
if port:
if port!=80 and port !=443:
@ -1314,10 +1315,10 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
'href': sendingActor,
'name': senderStr,
'type': 'Mention'
}
})
postJsonObject['actor']=httpPrefix+'://'+domain+'/users/'+nickname
postJsonObject['to']=[httpPrefix+'://'+domain+'/users/'+nickname+'/followers']
postJsonObject['actor']=httpPrefix+'://'+domainFull+'/users/'+nickname
postJsonObject['to']=[httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers']
postJsonObject['cc']=[cc]
postJsonObject['object']['to']=postJsonObject['to']
postJsonObject['object']['cc']=[cc]