Handle search path for shares

master
Bob Mottram 2019-09-05 16:11:21 +01:00
parent 02ff3012c7
commit 99bf555b9c
1 changed files with 5 additions and 2 deletions

View File

@ -1800,13 +1800,16 @@ class PubServer(BaseHTTPRequestHandler):
sharesPerPage)
if shares:
if self._requestHTTP():
if 'page=' not in self.path:
if '?page=' not in self.path:
searchPath=self.path
# get a page of shares, not the summary
shares=getSharesFeedForPerson(self.server.baseDir,self.server.domain, \
self.server.port,self.path+'?page=true', \
self.server.httpPrefix, \
sharesPerPage)
getPerson = personLookup(self.server.domain,self.path.replace('/shares',''), \
else:
searchPath=self.path.split('?page=')[0]
getPerson = personLookup(self.server.domain,searchPath.replace('/shares',''), \
self.server.baseDir)
if getPerson:
if not self.server.session: