From 5b1692a3c7f5c08edf6a393c71459c1eab38a34a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Oct 2019 15:43:46 +0100 Subject: [PATCH] Use full domain --- inbox.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inbox.py b/inbox.py index f0bf2e6c2..390ab38d0 100644 --- a/inbox.py +++ b/inbox.py @@ -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]