forked from indymedia/epicyon
Use full domain
parent
a478588e1f
commit
5b1692a3c7
7
inbox.py
7
inbox.py
|
@ -1290,6 +1290,7 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
|
||||||
nickname=handle.split('@')[0]
|
nickname=handle.split('@')[0]
|
||||||
groupname=getGroupName(baseDir,handle)
|
groupname=getGroupName(baseDir,handle)
|
||||||
domain=handle.split('@')[1]
|
domain=handle.split('@')[1]
|
||||||
|
domainFull=domain
|
||||||
if ':' not in domain:
|
if ':' not in domain:
|
||||||
if port:
|
if port:
|
||||||
if port!=80 and port !=443:
|
if port!=80 and port !=443:
|
||||||
|
@ -1314,10 +1315,10 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
|
||||||
'href': sendingActor,
|
'href': sendingActor,
|
||||||
'name': senderStr,
|
'name': senderStr,
|
||||||
'type': 'Mention'
|
'type': 'Mention'
|
||||||
}
|
})
|
||||||
|
|
||||||
postJsonObject['actor']=httpPrefix+'://'+domain+'/users/'+nickname
|
postJsonObject['actor']=httpPrefix+'://'+domainFull+'/users/'+nickname
|
||||||
postJsonObject['to']=[httpPrefix+'://'+domain+'/users/'+nickname+'/followers']
|
postJsonObject['to']=[httpPrefix+'://'+domainFull+'/users/'+nickname+'/followers']
|
||||||
postJsonObject['cc']=[cc]
|
postJsonObject['cc']=[cc]
|
||||||
postJsonObject['object']['to']=postJsonObject['to']
|
postJsonObject['object']['to']=postJsonObject['to']
|
||||||
postJsonObject['object']['cc']=[cc]
|
postJsonObject['object']['cc']=[cc]
|
||||||
|
|
Loading…
Reference in New Issue