From faefedfc9895adc27b97a826b95bf9e164459f57 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 21 Feb 2020 12:55:11 +0000 Subject: [PATCH] Nickname --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index a592f036a..dbb4bbec3 100644 --- a/daemon.py +++ b/daemon.py @@ -5153,6 +5153,10 @@ class PubServer(BaseHTTPRequestHandler): pageNumber=self._receiveNewPost(authorized,currPostType,self.path) if pageNumber: + nickname=path.split('/users/')[1] + if '/' in nickname: + nickname=nickname.split('/')[0] + self._redirect_headers(self.server.httpPrefix+'://'+self.server.domainFull+ \ '/users/'+nickname+ \ '/'+postRedirect+ \