Fix sending to named addresses

merge-requests/6/head
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.postLog,self.server.cachedWebfingers, \
self.server.personCache,self.server.allowDeletion, \
self.server.useTor,version,True)
self.server.useTor,version,self.server.debug)
def _postToOutboxThread(self,messageJson: {}) -> bool:
"""Creates a thread to send a post

View File

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