From 4327a725424370bed3bcf544a66c5ffda08aceba Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 29 Nov 2019 12:42:51 +0000 Subject: [PATCH] Receiving new questions --- daemon.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/daemon.py b/daemon.py index e0ba5501a..e548f10ac 100644 --- a/daemon.py +++ b/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)