mirror of https://gitlab.com/bashrc2/epicyon
Receiving new questions
parent
3d2402590b
commit
4327a72542
11
daemon.py
11
daemon.py
|
@ -5044,6 +5044,17 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
'/shares?page='+str(pageNumber),cookie)
|
||||
self.server.POSTbusy=False
|
||||
return
|
||||
pageNumber=self._receiveNewPost(authorized,'newquestion',self.path)
|
||||
if pageNumber:
|
||||
nickname=self.path.split('/users/')[1]
|
||||
if '/' in nickname:
|
||||
nickname=nickname.split('/')[0]
|
||||
self._redirect_headers(self.server.httpPrefix+'://'+self.server.domainFull+ \
|
||||
'/users/'+nickname+ \
|
||||
'/'+self.server.defaultTimeline+ \
|
||||
'?page='+str(pageNumber),cookie)
|
||||
self.server.POSTbusy=False
|
||||
return
|
||||
|
||||
self._benchmarkPOSTtimings(POSTstartTime,POSTtimings,15)
|
||||
|
||||
|
|
Loading…
Reference in New Issue