Fix sending to named addresses

main
Bob Mottram 2020-02-21 13:18:14 +00:00
parent 5a1575b4b8
commit ae1bcc8138
2 changed files with 11 additions and 11 deletions

View File

@ -666,7 +666,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.federationList,self.server.sendThreads, \ self.server.federationList,self.server.sendThreads, \
self.server.postLog,self.server.cachedWebfingers, \ self.server.postLog,self.server.cachedWebfingers, \
self.server.personCache,self.server.allowDeletion, \ self.server.personCache,self.server.allowDeletion, \
self.server.useTor,version,True) self.server.useTor,version,self.server.debug)
def _postToOutboxThread(self,messageJson: {}) -> bool: def _postToOutboxThread(self,messageJson: {}) -> bool:
"""Creates a thread to send a post """Creates a thread to send a post

View File

@ -297,14 +297,14 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
' recipient: '+str(messageJson['to'])) ' recipient: '+str(messageJson['to']))
else: else:
print('c2s sender: '+postToNickname+'@'+domain+':'+str(port)) print('c2s sender: '+postToNickname+'@'+domain+':'+str(port))
sendToNamedAddresses(server.session,baseDir, \ sendToNamedAddresses(server.session,baseDir, \
postToNickname,domain,port, \ postToNickname,domain,port, \
httpPrefix, \ httpPrefix, \
federationList, \ federationList, \
sendThreads, \ sendThreads, \
postLog, \ postLog, \
cachedWebfingers, \ cachedWebfingers, \
personCache, \ personCache, \
messageJson,debug, \ messageJson,debug, \
version) version)
return True return True