forked from indymedia/epicyon
Handle search path for shares
parent
02ff3012c7
commit
99bf555b9c
|
@ -1800,13 +1800,16 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
sharesPerPage)
|
sharesPerPage)
|
||||||
if shares:
|
if shares:
|
||||||
if self._requestHTTP():
|
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
|
# get a page of shares, not the summary
|
||||||
shares=getSharesFeedForPerson(self.server.baseDir,self.server.domain, \
|
shares=getSharesFeedForPerson(self.server.baseDir,self.server.domain, \
|
||||||
self.server.port,self.path+'?page=true', \
|
self.server.port,self.path+'?page=true', \
|
||||||
self.server.httpPrefix, \
|
self.server.httpPrefix, \
|
||||||
sharesPerPage)
|
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)
|
self.server.baseDir)
|
||||||
if getPerson:
|
if getPerson:
|
||||||
if not self.server.session:
|
if not self.server.session:
|
||||||
|
|
Loading…
Reference in New Issue