From 8f9904b5f3d652ee90d55438c3220c669ac4858c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Aug 2019 11:08:47 +0100 Subject: [PATCH] Nickname --- daemon.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/daemon.py b/daemon.py index 64bcdaca..22458e7b 100644 --- a/daemon.py +++ b/daemon.py @@ -2604,7 +2604,6 @@ class PubServer(BaseHTTPRequestHandler): if authorized and self.path.endswith('/personoptions'): originPathStr=self.path.split('/personoptions')[0] chooserNickname=getNicknameFromActor(originPathStr) - self.postToNickname=chooserNickname length = int(self.headers['Content-length']) optionsConfirmParams=self.rfile.read(length).decode('utf-8').replace('%3A',':').replace('%2F','/') # actor for the person @@ -2697,7 +2696,7 @@ class PubServer(BaseHTTPRequestHandler): nickname=self.path.split('/users/')[1] if '/' in nickname: nickname=nickname.split('/')[0] - self._redirect_headers('/users/'+self.postToNickname+'/outbox',cookie) + self._redirect_headers('/users/'+nickname+'/outbox',cookie) self.server.POSTbusy=False return postState=self._receiveNewPost(authorized,'newfollowers') @@ -2705,7 +2704,7 @@ class PubServer(BaseHTTPRequestHandler): nickname=self.path.split('/users/')[1] if '/' in nickname: nickname=nickname.split('/')[0] - self._redirect_headers('/users/'+self.postToNickname+'/outbox',cookie) + self._redirect_headers('/users/'+nickname+'/outbox',cookie) self.server.POSTbusy=False return postState=self._receiveNewPost(authorized,'newdm') @@ -2713,7 +2712,7 @@ class PubServer(BaseHTTPRequestHandler): nickname=self.path.split('/users/')[1] if '/' in nickname: nickname=nickname.split('/')[0] - self._redirect_headers('/users/'+self.postToNickname+'/outbox',cookie) + self._redirect_headers('/users/'+nickname+'/outbox',cookie) self.server.POSTbusy=False return postState=self._receiveNewPost(authorized,'newreport') @@ -2729,7 +2728,7 @@ class PubServer(BaseHTTPRequestHandler): nickname=self.path.split('/users/')[1] if '/' in nickname: nickname=nickname.split('/')[0] - self._redirect_headers('/users/'+self.postToNickname+'/shares',cookie) + self._redirect_headers('/users/'+nickname+'/shares',cookie) self.server.POSTbusy=False return