Full actor path

main
Bob Mottram 2020-09-28 14:23:38 +01:00
parent 673d7f6075
commit 5c350d1671
1 changed files with 2 additions and 1 deletions

View File

@ -9126,7 +9126,8 @@ class PubServer(BaseHTTPRequestHandler):
if '/' in nickname: if '/' in nickname:
nickname = nickname.split('/')[0] nickname = nickname.split('/')[0]
usersPath = '/users/' + nickname usersPath = '/users/' + nickname
actorStr = path.split('/users/')[0] + usersPath actorStr = self.server.httpPrefix + '://' + self.server.domainFull + \
path.split('/users/')[0] + usersPath
if callingDomain.endswith('.onion') and self.server.onionDomain: if callingDomain.endswith('.onion') and self.server.onionDomain:
actorStr = 'http://' + self.server.onionDomain + usersPath actorStr = 'http://' + self.server.onionDomain + usersPath
elif (callingDomain.endswith('.i2p') and self.server.i2pDomain): elif (callingDomain.endswith('.i2p') and self.server.i2pDomain):