Receiving new questions

merge-requests/6/head
Bob Mottram 2019-11-29 12:42:51 +00:00
parent 3d2402590b
commit 4327a72542
1 changed files with 11 additions and 0 deletions

View File

@ -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)