From 646c3ecc1e470b09a8b875e14be9cdee919dbf19 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 5 Aug 2019 12:08:52 +0100 Subject: [PATCH] Consistent shared inbox path --- daemon.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 31c942d8..d7333dd5 100644 --- a/daemon.py +++ b/daemon.py @@ -429,12 +429,17 @@ class PubServer(BaseHTTPRequestHandler): if self.server.debug: print('GET Not authorized') + # treat shared inbox paths consistently + if self.path=='/sharedInbox' or self.path=='/users/inbox': + self.path='/inbox' + # if not authorized then show the login screen if self.headers.get('Accept'): if 'text/html' in self.headers['Accept'] and self.path!='/login': if '/media/' not in self.path and \ '/sharefiles/' not in self.path and \ - '/icons/' not in self.path: + '/icons/' not in self.path and \ + self.path != '/inbox': divertToLoginScreen=True if self.path.startswith('/users/'): nickStr=self.path.split('/users/')[1]