From cd4e0cb7a1ca9e807beac81504d4c028997ee768 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Aug 2019 18:05:51 +0100 Subject: [PATCH] Remove following from path --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 05d4bd82..b6d1a444 100644 --- a/daemon.py +++ b/daemon.py @@ -519,6 +519,7 @@ class PubServer(BaseHTTPRequestHandler): if self.server.debug: print('DEBUG: divertToLoginScreen='+str(divertToLoginScreen)) print('DEBUG: authorized='+str(authorized)) + print('DEBUG: path='+self.path) self.send_response(303) self.send_header('Location', '/login') self.send_header('Content-Length', '0') @@ -828,7 +829,7 @@ class PubServer(BaseHTTPRequestHandler): # Unfollow a person from the web interface by selecting Unfollow on the dropdown if '/users/' in self.path and '?unfollow=' in self.path: followStr=self.path.split('?unfollow=')[1] - originPathStr=self.path.split('?unfollow=')[0] + originPathStr=self.path.split('?unfollow=')[0].replace('/following','') if ';' in followStr: followActor=followStr.split(';')[0] followProfileUrl=followStr.split(';')[1]