Create session

master
Bob Mottram 2019-08-07 13:50:48 +01:00
parent 71bd312aa3
commit d7d46bdbee
1 changed files with 3 additions and 0 deletions

View File

@ -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, \