From ae1bcc81389f4ba3eeb384844740f40bdf362444 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Feb 2020 13:18:14 +0000 Subject: [PATCH] Fix sending to named addresses --- daemon.py | 2 +- outbox.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/daemon.py b/daemon.py index 5cb3a5fc4..249b2d569 100644 --- a/daemon.py +++ b/daemon.py @@ -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 diff --git a/outbox.py b/outbox.py index b795bba3c..995192e2c 100644 --- a/outbox.py +++ b/outbox.py @@ -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