From 1d8997af2c2f3108ea1b44db24c5afce243410f6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Oct 2020 18:16:07 +0000 Subject: [PATCH] Access to links from mobile front page --- daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index d804d5e7..e4266036 100644 --- a/daemon.py +++ b/daemon.py @@ -9530,8 +9530,12 @@ class PubServer(BaseHTTPRequestHandler): self.server.GETbusy = False return - if authorized and htmlGET and '/users/' in self.path and \ + if htmlGET and self.path.startswith('/users/') and \ self.path.endswith('/linksmobile'): + if (authorized or + (not authorized and + self.path.startswith('/users/news/') and + self.server.newsInstance)): nickname = getNicknameFromActor(self.path) if not nickname: self._404()