From d7d46bdbeec6f85d27310c460442cbcdcdec4c87 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 7 Aug 2019 13:50:48 +0100 Subject: [PATCH] Create session --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 571a0dcc..f571cb94 100644 --- a/daemon.py +++ b/daemon.py @@ -756,6 +756,9 @@ class PubServer(BaseHTTPRequestHandler): followerDomain,FollowerPort=getDomainFromActor(originPathStr) followingHandle=self.path.split('/followapprove=')[1] if '@' in followingHandle: + if not self.server.session: + self.server.session= \ + createSession(self.server.domain,self.server.port,self.server.useTor) manualApproveFollowRequest(self.server.session, \ self.server.baseDir, \ self.server.httpPrefix, \