diff --git a/daemon.py b/daemon.py index a647650fc..74337cc44 100644 --- a/daemon.py +++ b/daemon.py @@ -9434,9 +9434,12 @@ class PubServer(BaseHTTPRequestHandler): 'permitted directory', 'login shown done') - if htmlGET and '/users/' in self.path and \ + if htmlGET and self.path.startswith('/users/') and \ self.path.endswith('/newswiremobile'): - if (authorized or (not authorized and '/users/news/' in self.path)): + if (authorized or + (not authorized and + self.path.startswith('/users/news/') and + self.server.newsInstance)): nickname = getNicknameFromActor(self.path) if not nickname: self._404()